From e82df38da0f608d618b623fe024ab3fa8950bb17 Mon Sep 17 00:00:00 2001 From: Thibaut Notteboom Date: Sun, 3 Mar 2013 12:45:36 -0600 Subject: network/shibboleth-sp: Added (Shibboleth Service Provider) Signed-off-by: Robby Workman --- network/shibboleth-sp/rc.shibboleth | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 network/shibboleth-sp/rc.shibboleth (limited to 'network/shibboleth-sp/rc.shibboleth') diff --git a/network/shibboleth-sp/rc.shibboleth b/network/shibboleth-sp/rc.shibboleth new file mode 100644 index 0000000000000..8854433a97f80 --- /dev/null +++ b/network/shibboleth-sp/rc.shibboleth @@ -0,0 +1,39 @@ +#!/bin/sh + +shibd_start() { + echo "Starting the shibd service: /usr/sbin/shibd" + /usr/sbin/shibd -f -u shibd -g shibd +} + +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 -- cgit v1.2.3