[freeside-commits] freeside/init.d freeside-init,1.16,1.17
Ivan,,,
ivan at wavetail.420.am
Sat Nov 1 15:12:48 PDT 2008
Update of /home/cvs/cvsroot/freeside/init.d
In directory wavetail.420.am:/tmp/cvs-serv22522/init.d
Modified Files:
freeside-init
Log Message:
have freeside-cdrd disable itself if there's no appropriate package definition, RT#4184
Index: freeside-init
===================================================================
RCS file: /home/cvs/cvsroot/freeside/init.d/freeside-init,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- freeside-init 29 Oct 2008 08:03:07 -0000 1.16
+++ freeside-init 1 Nov 2008 22:12:45 -0000 1.17
@@ -43,35 +43,45 @@
stop)
# Stop daemons.
echo -n "Stopping freeside-queued: "
- kill `cat /var/run/freeside-queued.pid`
- echo "done."
-
+ [ -e /var/run/freeside-queued.pid ] && kill `cat /var/run/freeside-queued.pid`
#and
+ sleep 2;
killall freeside-queued
-
- echo -n "Stopping freeside-sqlradius-radacctd: "
- kill `cat /var/run/freeside-sqlradius-radacctd.pid`
echo "done."
- echo -n "Stopping freeside-prepaidd: "
- kill `cat /var/run/freeside-prepaidd.pid`
- echo "done."
+ if [ -e /var/run/freeside-sqlradius-radacctd.pid ]; then
+ echo -n "Stopping freeside-sqlradius-radacctd: "
+ kill `cat /var/run/freeside-sqlradius-radacctd.pid`
+ echo "done."
+ fi
- echo -n "Stopping freeside-cdrd: "
- kill `cat /var/run/freeside-cdrd.pid`
- echo "done."
+ if [ -e /var/run/freeside-prepaidd.pid ]; then
+ echo -n "Stopping freeside-prepaidd: "
+ kill `cat /var/run/freeside-prepaidd.pid`
+ echo "done."
+ fi
+
+ if [ -e /var/run/freeside-cdrd.pid ]; then
+ echo -n "Stopping freeside-cdrd: "
+ kill `cat /var/run/freeside-cdrd.pid`
+ echo "done."
+ fi
if [ -e /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid ]
then
echo -n "Stopping (old) freeside-selfservice-server: "
kill `cat /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid`
rm /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid
+ echo "done."
fi
for MACHINE in $SELFSERVICE_MACHINES; do
- echo -n "Stopping freeside-selfservice-server to $MACHINE: "
- kill `cat /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid`
- echo "done."
+ if [ -e /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid ]
+ then
+ echo -n "Stopping freeside-selfservice-server to $MACHINE: "
+ kill `cat /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid`
+ echo "done."
+ fi
done
;;
More information about the freeside-commits
mailing list