|
|
@ -1,13 +1,6 @@
|
|
|
|
#! /bin/sh
|
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# skeleton example file to build /etc/init.d/ scripts.
|
|
|
|
# Version: @(#)bforce 1.1 30-Oct-2006 e.kozhuhovskiy@gmail.com
|
|
|
|
# This file should be used to construct scripts for /etc/init.d.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
|
|
|
|
|
|
# Modified for Debian
|
|
|
|
|
|
|
|
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# 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
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
@ -15,11 +8,11 @@
|
|
|
|
# (at your option) any later version.
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
DAEMON=/usr/bin/bforce
|
|
|
|
DAEMON=/usr/bin/bforce
|
|
|
|
NAME=bforce
|
|
|
|
NAME=bforce
|
|
|
|
DESC="fidonet mailer"
|
|
|
|
DESC="fidonet mailer"
|
|
|
|
OWNER="uucp"
|
|
|
|
OWNER="news"
|
|
|
|
test -x $DAEMON || exit 0
|
|
|
|
test -x $DAEMON || exit 0
|
|
|
|
|
|
|
|
|
|
|
|
# Include bforce defaults if available
|
|
|
|
# Include bforce defaults if available
|
|
|
@ -38,19 +31,19 @@ set -e
|
|
|
|
case "$1" in
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start)
|
|
|
|
echo -n "Starting $DESC: "
|
|
|
|
echo -n "Starting $DESC: "
|
|
|
|
su $OWNER -c "$DAEMON -d"
|
|
|
|
su -c "$DAEMON -d" $OWNER
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop)
|
|
|
|
echo -n "Stopping $DESC: "
|
|
|
|
echo -n "Stopping $DESC: "
|
|
|
|
su $OWNER -c "$DAEMON -q"
|
|
|
|
su -c "$DAEMON -q" $OWNER
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
restart|force-reload)
|
|
|
|
restart|force-reload)
|
|
|
|
echo -n "Restarting $DESC: "
|
|
|
|
echo -n "Restarting $DESC: "
|
|
|
|
su $OWNER "$DAEMON -q"
|
|
|
|
su -c "$DAEMON -q" $OWNER
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
su $OWNER "$DAEMON -d"
|
|
|
|
su -c "$DAEMON -d" $OWNER
|
|
|
|
echo "$NAME."
|
|
|
|
echo "$NAME."
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|