|
|
@ -16,15 +16,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
DAEMON=/usr/sbin/bforce
|
|
|
|
DAEMON=/usr/bin/bforce
|
|
|
|
NAME=bforce
|
|
|
|
NAME=bforce
|
|
|
|
DESC=bforce
|
|
|
|
DESC="fidonet mailer"
|
|
|
|
|
|
|
|
OWNER="uucp"
|
|
|
|
test -x $DAEMON || exit 0
|
|
|
|
test -x $DAEMON || exit 0
|
|
|
|
|
|
|
|
|
|
|
|
# Include bforce defaults if available
|
|
|
|
# Include bforce defaults if available
|
|
|
|
if [ -f /etc/default/bforce ] ; then
|
|
|
|
if [ -f /etc/default/bforce/default ] ; then
|
|
|
|
. /etc/default/bforce
|
|
|
|
. /etc/default/bforce/default
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# We need to run bforce?
|
|
|
|
# We need to run bforce?
|
|
|
@ -38,23 +38,19 @@ set -e
|
|
|
|
case "$1" in
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start)
|
|
|
|
echo -n "Starting $DESC: "
|
|
|
|
echo -n "Starting $DESC: "
|
|
|
|
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
|
|
|
su $OWNER -c "$DAEMON -d"
|
|
|
|
--exec $DAEMON -- $DAEMON_OPTS
|
|
|
|
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop)
|
|
|
|
echo -n "Stopping $DESC: "
|
|
|
|
echo -n "Stopping $DESC: "
|
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
|
|
|
su $OWNER -c "$DAEMON -q"
|
|
|
|
--exec $DAEMON
|
|
|
|
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
restart|force-reload)
|
|
|
|
restart|force-reload)
|
|
|
|
echo -n "Restarting $DESC: "
|
|
|
|
echo -n "Restarting $DESC: "
|
|
|
|
start-stop-daemon --stop --quiet --pidfile \
|
|
|
|
su $OWNER "$DAEMON -q"
|
|
|
|
/var/run/$NAME.pid --exec $DAEMON
|
|
|
|
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
start-stop-daemon --start --quiet --pidfile \
|
|
|
|
su $OWNER "$DAEMON -d"
|
|
|
|
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
|
|
|
|
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|