summaryrefslogtreecommitdiff
path: root/init.d/freeside-init
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/freeside-init')
-rw-r--r--init.d/freeside-init12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/freeside-init b/init.d/freeside-init
index d3016b289..37ced73d4 100644
--- a/init.d/freeside-init
+++ b/init.d/freeside-init
@@ -15,6 +15,9 @@ SIGNUP_MACHINE=%%%SIGNUP_MACHINE%%%
SIGNUP_AGENTNUM=%%%SIGNUP_AGENTNUM%%%
SIGNUP_REFNUM=%%%SIGNUP_REFNUM%%%
+SELFSERVICE_USER=%%%SELFSERVICE_USER%%%
+SELFSERVICE_MACHINE=%%%SELFSERVICE_MACHINE%%%
+
case "$1" in
start)
# Start daemons.
@@ -29,6 +32,11 @@ case "$1" in
echo -n "Starting fs_signup_server: "
su freeside -c "$FREESIDE_PATH/fs_signup/fs_signup_server $SIGNUP_USER $SIGNUP_MACHINE $SIGNUP_AGENTNUM $SIGNUP_REFNUM" &
echo "done."
+
+ echo -n "Starting freeside-selfservice-server: "
+ $FREESIDE_PATH/fs_selfservice/freeside-selfservice-server $SELFSERVICE_USER $SELFSERVICE_MACHINE
+ echo "done."
+
;;
stop)
# Stop daemons.
@@ -43,6 +51,10 @@ case "$1" in
echo -n "Stopping fs_signup_server: "
killall fs_signup_server
echo "done."
+
+ echo -n "Stopping freeside-selfservice-server: "
+ kill `cat /var/run/freeside-selfservice-server.pid`
+ echo "done."
;;
restart)