[Pkg-mono-svn-commits] rev 265 - xsp-snapshot/trunk/debian
Pablo Fischer
pabl0-guest@quantz.debian.org
Tue, 17 Feb 2004 17:48:12 +0100
Author: pabl0-guest
Date: 2004-02-17 17:48:11 +0100 (Tue, 17 Feb 2004)
New Revision: 265
Modified:
xsp-snapshot/trunk/debian/mono-xsp-snapshot.init
Log:
Fixed some start-stop-daemon flags, now the daemon works!
Modified: xsp-snapshot/trunk/debian/mono-xsp-snapshot.init
===================================================================
--- xsp-snapshot/trunk/debian/mono-xsp-snapshot.init 2004-02-17 04:58:04 UTC (rev 264)
+++ xsp-snapshot/trunk/debian/mono-xsp-snapshot.init 2004-02-17 16:48:11 UTC (rev 265)
@@ -37,54 +37,43 @@
}
case "$1" in
- start)
+ start)
should_start
virtual_dirs=`echo $(cat $VIRTUALFILE | tr '\n' , | sed 's/.$//')`
. $DEFAULT
echo -n "Starting $DESC: $NAME"
- start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON -- --port $port --applications $virtual_dirs --nonstop
+ start-stop-daemon --start --background --make-pidfile \
+ --quiet --pidfile /var/run/$NAME \
+ --exec $DAEMON -- \
+ --port $port --applications $virtual_dirs --nonstop
echo "."
;;
- stop)
+ stop)
echo -n "Stopping $DESC: $NAME "
- start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON
+ start-stop-daemon --stop --quiet --pidfile /var/run/$NAME
echo "."
;;
- #reload)
+ restart|force-reload)
#
- # If the daemon can reload its config files on the fly
- # for example by sending it SIGHUP, do it here.
- #
- # If the daemon responds to changes in its config file
- # directly anyway, make this a do-nothing entry.
- #
- # echo -n "Reloading $DESC configuration..."
- # start-stop-daemon --stop --signal 1 --quiet --pidfile \
- # /var/run/$NAME.pid --exec $DAEMON
- # echo "done."
- #;;
- restart|force-reload)
- #
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: $NAME"
- start-stop-daemon --stop --quiet --pidfile \
- /var/run/$NAME.pid --exec $DAEMON
+ start-stop-daemon --stop --quiet --pidfile /var/run/$NAME
sleep 1
should_start
virtual_dirs=`echo $(cat $VIRTUALFILE | tr '\n' , | sed 's/.$//')`
. $DEFAULT
- echo -n "Starting $DESC: $NAME"
- start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON -- --port $port --applications $virtual_dirs --nonstop
+ echo "Starting $DESC: $NAME"
+ start-stop-daemon --start --background --make-pidfile \
+ --quiet --pidfile /var/run/$NAME \
+ --exec $DAEMON -- \
+ --port $port --applications $virtual_dirs --nonstop
echo "."
;;
- *)
+ *)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1