You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bforce/contrib/init.d/bforce.debian

45 lines
898 B
Bash

#!/bin/sh
#
# bforce FTN mailer
#
# chkconfig: 345 94 14
# description: Starts and stops the binkleyforce mailer daemon
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
OWNER=uucp
BFORCE=/usr/local/fido/bin/bforce
[ -f $BFORCE ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemon.
echo -n "Starting bforce. "
su $OWNER -c "daemon $BFORCE -d"
echo
touch /var/lock/subsys/bforce
;;
stop)
# Stop daemon.
echo -n "Shutting down bforce. "
$BFORCE -q
rm -f /var/lock/subsys/bforce
echo
;;
restart)
$0 stop
$0 start
exit $?
;;
*)
echo "Usage: bforce {start|stop|restart}"
exit 1
esac
exit 0