[Pkg-mono-svn-commits] rev 257 - xsp-snapshot/trunk/debian
Pablo Fischer
pabl0-guest@quantz.debian.org
Tue, 17 Feb 2004 05:45:29 +0100
Author: pabl0-guest
Date: 2004-02-17 05:45:28 +0100 (Tue, 17 Feb 2004)
New Revision: 257
Modified:
xsp-snapshot/trunk/debian/mono-xsp-snapshot.init
Log:
Modified:
* Added the --background flag to the daemon
* Changed the virtual_dirs commands, so that each virtual directory will be separated with a comma
* And others..
Modified: xsp-snapshot/trunk/debian/mono-xsp-snapshot.init
===================================================================
--- xsp-snapshot/trunk/debian/mono-xsp-snapshot.init 2004-02-16 09:29:47 UTC (rev 256)
+++ xsp-snapshot/trunk/debian/mono-xsp-snapshot.init 2004-02-17 04:45:28 UTC (rev 257)
@@ -13,7 +13,7 @@
NAME=mono-xsp-snapshot
DESC="XSP WebServer"
DEFAULT=/etc/default/$NAME
-CFGDIR=/etc/$NAME
+CFGDIR=/etc/xsp-snapshot
VIRTUALFILE=$CFGDIR/virtual.conf
@@ -30,8 +30,8 @@
exit 0
fi
- if [ -e $VRITUALFILE ]; then
- echo "$NAME was not configured, errors found in $CFGFILE, fix them"
+ if [ ! -e $VIRTUALFILE ]; then
+ echo "$NAME was not configured, errors found in $VIRTUALFILE, fix them"
exit 0
fi
}
@@ -39,7 +39,7 @@
case "$1" in
start)
should_start
- virtual_dirs=`cat $VRITUALFILE`
+ 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 \
@@ -77,7 +77,7 @@
sleep 1
should_start
- virtual_dirs=`cat $VRITUALFILE`
+ 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 \
@@ -86,7 +86,6 @@
;;
*)
N=/etc/init.d/$NAME
- # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;