From 638ab80885fc82158c228f571c986835000863d6 Mon Sep 17 00:00:00 2001 From: Evgeniy Kozhuhovskiy Date: Mon, 30 Oct 2006 07:55:07 +0000 Subject: [PATCH] fixes --- debian/changelog | 6 ++++++ debian/init.d | 21 +++++++-------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/debian/changelog b/debian/changelog index dac9561..d113956 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +bforce (0.22.9-3) unstable; urgency=low + + * fixes in init.d script + + -- Evgeniy Kozhuhovskiy Mon, 30 Oct 2006 09:54:43 +0200 + bforce (0.22.9-2) unstable; urgency=low * fixed bug in debian/dirs file (usr/lib/bforce wasnt here) diff --git a/debian/init.d b/debian/init.d index 07d542c..b7e300c 100644 --- a/debian/init.d +++ b/debian/init.d @@ -1,13 +1,6 @@ #! /bin/sh # -# skeleton example file to build /etc/init.d/ scripts. -# This file should be used to construct scripts for /etc/init.d. -# -# Written by Miquel van Smoorenburg . -# Modified for Debian -# by Ian Murdock . -# -# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# Version: @(#)bforce 1.1 30-Oct-2006 e.kozhuhovskiy@gmail.com # # 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 @@ -15,11 +8,11 @@ # (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 NAME=bforce DESC="fidonet mailer" -OWNER="uucp" +OWNER="news" test -x $DAEMON || exit 0 # Include bforce defaults if available @@ -38,19 +31,19 @@ set -e case "$1" in start) echo -n "Starting $DESC: " - su $OWNER -c "$DAEMON -d" + su -c "$DAEMON -d" $OWNER echo "$NAME." ;; stop) echo -n "Stopping $DESC: " - su $OWNER -c "$DAEMON -q" + su -c "$DAEMON -q" $OWNER echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " - su $OWNER "$DAEMON -q" + su -c "$DAEMON -q" $OWNER sleep 1 - su $OWNER "$DAEMON -d" + su -c "$DAEMON -d" $OWNER echo "$NAME." ;; *)