Код: Выделить всё
psad | * Caching service dependencies ... [ ok ]
psad | * Starting psad ...
psad | * start-stop-daemon: /usr/sbin/psad is a script
psad | * start-stop-daemon: and should be started, stopped or signalled with
psad | * start-stop-daemon: --exec /usr/bin/perl -w /usr/sbin/psad
psad | * start-stop-daemon: or you should specify a pidfile or process name
psad | * Failed to start psad [ !! ]
psad | * ERROR: psad failed to startКонфиг стандартный, но мне кажется, он тут ни при чём, вот сам скрипт, тоже стандартный, какой был после установки, не менял.
Код: Выделить всё
#!/sbin/runscript
## Copyright 2006 Michael Rash
# Distributed under the terms of the GNU General Public License v2
# Author: Michael Rash
# Developed for the Gentoo Linux distribution
# $Id: psad-init.gentoo 1613 2006-10-15 18:42:22Z mbr $
depend() {
need logger
}
checkconfig() {
if [ ! -f /etc/psad/psad.conf ]; then
eerror "Please create /etc/psad/psad.conf"
eerror "You can find a sample config file at /etc/psad/psad.conf.sample"
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --quiet --exec /usr/sbin/psad
eend $? "Failed to start ${SVCNAME}"
}
stop() {
ebegin "Stopping psadwatchd"
start-stop-daemon --stop --quiet --pidfile /var/run/psad/psadwatchd.pid
eend $? "Failed to stop psadwatchd"
if [ -f /var/run/psad/kmsgsd.pid ]; then
ebegin "Stopping kmsgsd"
start-stop-daemon --stop --quiet --pidfile /var/run/psad/kmsgsd.pid
eend $? "Failed to stop kmsgsd"
fi
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --quiet --pidfile /var/run/psad/psad.pid
eend $? "Failed to stop ${SVCNAME}"
}В нём что-то неправильно?