4 # description: Freeside daemons
6 QUEUED_USER=%%%QUEUED_USER%%%
8 SELFSERVICE_USER=%%%SELFSERVICE_USER%%%
9 SELFSERVICE_MACHINES="%%%SELFSERVICE_MACHINES%%%"
11 #INSTALLSCRIPT/INSTALLSITEBIN from Makefile.PL
12 PATH="$PATH:/usr/local/bin"
18 echo -n "Starting freeside-queued: "
19 freeside-queued $QUEUED_USER
22 #echo -n "Starting freeside-sqlradius-radacctd: "
23 #freeside-sqlradius-radacctd $QUEUED_USER
26 echo -n "Starting freeside-prepaidd: "
27 freeside-prepaidd $QUEUED_USER
30 for MACHINE in $SELFSERVICE_MACHINES; do
31 echo -n "Starting freeside-selfservice-server to $MACHINE: "
32 freeside-selfservice-server $SELFSERVICE_USER $MACHINE
39 echo -n "Stopping freeside-queued: "
40 kill `cat /var/run/freeside-queued.pid`
44 killall freeside-queued
46 echo -n "Stopping freeside-sqlradius-radacctd: "
47 kill `cat /var/run/freeside-sqlradius-radacctd.pid`
50 echo -n "Stopping freeside-prepaidd: "
51 kill `cat /var/run/freeside-prepaidd.pid`
54 if [ -e /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid ]
56 echo -n "Stopping (old) freeside-selfservice-server: "
57 kill `cat /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid`
58 rm /var/run/freeside-selfservice-server.$SELFSERVICE_USER.pid
61 for MACHINE in $SELFSERVICE_MACHINES; do
62 echo -n "Stopping freeside-selfservice-server to $MACHINE: "
63 kill `cat /var/run/freeside-selfservice-server.$SELFSERVICE_USER.$MACHINE.pid`
74 echo "Usage: freeside {start|stop|restart}"