diff options
author | ivan <ivan> | 2010-06-16 21:53:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-16 21:53:24 +0000 |
commit | 7ea8e16cf847c607bf917cb3b31110d18104a343 (patch) | |
tree | b0663a3c412b0df9763a0ff547ed30b3b62f72e5 /init.d/freeside-init | |
parent | 0743ea91445e0682a00a05a0ae8f72e587d6a0e9 (diff) |
a local XML-RPC server for ncic: daemonize and respond to TERM, RT#7780
Diffstat (limited to 'init.d/freeside-init')
-rw-r--r-- | init.d/freeside-init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/init.d/freeside-init b/init.d/freeside-init index b4609d48a..1acefdc41 100644 --- a/init.d/freeside-init +++ b/init.d/freeside-init @@ -48,6 +48,10 @@ case "$1" in echo "done." done + echo -n "Starting freeside-selfservice-xmlrpcd: " + freeside-selfservice-xmlrpcd $SELFSERVICE_USER + echo "done." + #ip=`/sbin/ifconfig $IF | grep 'inet addr:' | cut -d: -f2- | cut -d' ' -f1` #cp /opt/rt3/etc/RT_SiteConfig.pm.ORIG /opt/rt3/etc/RT_SiteConfig.pm #perl -pi -e "s/localhost/$ip/" /opt/rt3/etc/RT_SiteConfig.pm @@ -104,6 +108,12 @@ case "$1" in fi done + if [ -e /var/run/freeside/selfservice-xmlrpcd.pid ]; then + echo -n "Stopping freeside-selfservice-xmlrpcd: " + kill `cat /var/run/freeside/selfservice-xmlrpcd.pid` + echo "done." + fi + ;; restart) |