master
Evgeniy Kozhuhovskiy 18 years ago
parent dafaab93d0
commit 638ab80885

6
debian/changelog vendored

@ -1,3 +1,9 @@
bforce (0.22.9-3) unstable; urgency=low
* fixes in init.d script
-- Evgeniy Kozhuhovskiy <ugenk@mgts.by> Mon, 30 Oct 2006 09:54:43 +0200
bforce (0.22.9-2) unstable; urgency=low bforce (0.22.9-2) unstable; urgency=low
* fixed bug in debian/dirs file (usr/lib/bforce wasnt here) * fixed bug in debian/dirs file (usr/lib/bforce wasnt here)

21
debian/init.d vendored

@ -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."
;; ;;
*) *)

Loading…
Cancel
Save