3 client
=/usr
/bin
/greylist
4 daemon
=/usr
/sbin
/greylistd
5 rundir
=/var
/run
/greylistd
6 datadir
=/var
/lib
/greylistd
15 # See if the daemon is present
16 test -x "$daemon" ||
exit 0
18 # Make sure /var/run/greylistd exists (/var/run may be a tmpfs)
19 test -d "$rundir" ||
{
21 chown
"$user:$group" "$rundir"
26 stat_busy
"Starting Greylistd"
31 echo " Another instance of \`${daemon##*/}' seems to be running."
32 echo " If this is not the case, please remove \"$socket\"."
37 start-stop-daemon
--start --background \
39 --pidfile "$pidfile" --make-pidfile \
46 stat_busy
"Stopping Greylistd"
47 start-stop-daemon
--stop --pidfile "$pidfile" &&
68 echo "Usage: $0 {start|stop|restart|reload|force-reload|status}" >&2