From 066f885a3f8c1d53b3a55f4f5706ceeeb010b296 Mon Sep 17 00:00:00 2001 From: cantor Date: Tue, 14 Aug 2007 19:21:59 +0000 Subject: [PATCH] Parameterize the script a bit. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2417 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configs/shibd-debian.in | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/configs/shibd-debian.in b/configs/shibd-debian.in index c043f19..903da88 100644 --- a/configs/shibd-debian.in +++ b/configs/shibd-debian.in @@ -22,11 +22,10 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Shibboleth 2 daemon" NAME=shibd -SHIB_HOME=/opt/shibboleth-sp -SHIB_ETC=$SHIB_HOME/etc/shibboleth -SHIBSP_CONFIG=$SHIB_ETC/shibboleth2.xml -LD_LIBRARY_PATH=$SHIB_HOME/lib -DAEMON=$SHIB_HOME/sbin/$NAME +SHIB_HOME=@-PREFIX-@ +SHIBSP_CONFIG=@-PKGSYSCONFDIR-@/shibboleth2.xml +LD_LIBRARY_PATH=@-PREFIX-@/lib +DAEMON=@-PREFIX-@/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME PIDFILE=/var/run/$NAME.pid DAEMON_OPTS="" @@ -58,22 +57,22 @@ start) fi echo -n "Starting $DESC: " start-stop-daemon --background --start --quiet \ - --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON sleep 1 start-stop-daemon --background --start --quiet \ - --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; *) @@ -82,4 +81,4 @@ restart|force-reload) ;; esac -exit 0 \ No newline at end of file +exit 0 -- 2.1.4