3
OPTS="/etc/binkd/binkd.cfg -q"
4
PIDFILE=/var/run/ftn/binkd.pid
7
test -f $DAEMON || exit 0
9
# don't start binkd if it is started by inetd
10
grep -q ^binkp /etc/inetd.conf && exit 0
14
echo -n "Starting FTN mailer: binkd"
15
start-stop-daemon --start --background --pidfile $PIDFILE \
16
--chuid ftn:ftn --exec $DAEMON -- $OPTS
20
echo -n "Stopping FTN mailer: binkd"
21
start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
25
echo -n "Reloading FTN mailer: binkd"
26
start-stop-daemon --stop --signal 1 --pidfile $PIDFILE --exec $DAEMON
35
echo "Usage: /etc/init.d/binkd {start|stop|restart|reload|force-reload}"