diff options
author | Thibaut Notteboom <thibaut.notteboom@gmail.com> | 2015-08-24 18:05:38 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-25 05:21:06 +0700 |
commit | 3f626b06c68002abde0f2615da4fc0e126dd6258 (patch) | |
tree | 03268beca50eb71339616ff0c4b8133f58e2c4a1 /network/shibboleth-sp/rc.shibd | |
parent | dc04a059952d7a6ada0d226b8cb2b86fc648df6b (diff) | |
download | slackbuilds-3f626b06c68002abde0f2615da4fc0e126dd6258.tar.gz |
network/shibboleth-sp: Updated for version 2.5.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/shibboleth-sp/rc.shibd')
-rw-r--r-- | network/shibboleth-sp/rc.shibd | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/network/shibboleth-sp/rc.shibd b/network/shibboleth-sp/rc.shibd new file mode 100644 index 0000000000..db154529fa --- /dev/null +++ b/network/shibboleth-sp/rc.shibd @@ -0,0 +1,49 @@ +#!/bin/sh + +SHIBD_USER=shibd +SHIBD_WAIT=30 +SHIBD_PID=/var/run/shibboleth/shibd.pid + +DAEMON_OPTS="-f -u $SHIBD_USER -g $SHIBD_USER -w $SHIBD_WAIT -p $SHIBD_PID" + +shibd_start() { + if [ -f $SHIBD_PID ]; then + echo "The shibd service is already running" + else + echo "Starting the shibd service: /usr/sbin/shibd" + /usr/sbin/shibd $DAEMON_OPTS -p $SHIBD_PID + fi +} + +shibd_stop() { + echo "Stoping the shibd service: /usr/sbin/shibd" + killall shibd +} + +shibd_restart() { + shibd_stop + sleep 1 + shibd_start +} + +shibd_configtest() { + /usr/sbin/shibd -t +} + +case "$1" in + 'start') + shibd_start + ;; + 'stop') + shibd_stop + ;; + 'restart') + shibd_restart + ;; + 'configtest') + shibd_configtest + ;; + *) + echo "Usage: $0 start|stop|restart|configtest" + ;; +esac |