summaryrefslogtreecommitdiff
path: root/network/shibboleth-sp/rc.shibboleth
diff options
context:
space:
mode:
authorThibaut Notteboom <tib@tibux.org>2013-03-03 12:45:36 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-03-03 12:45:36 -0600
commite82df38da0f608d618b623fe024ab3fa8950bb17 (patch)
tree08a3cc3130a2ce436ab422a176a758c12defa61c /network/shibboleth-sp/rc.shibboleth
parentba84a34c191db5a047da568d5c670f18ea37861b (diff)
downloadslackbuilds-e82df38da0f608d618b623fe024ab3fa8950bb17.tar.gz
network/shibboleth-sp: Added (Shibboleth Service Provider)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/shibboleth-sp/rc.shibboleth')
-rw-r--r--network/shibboleth-sp/rc.shibboleth39
1 files changed, 39 insertions, 0 deletions
diff --git a/network/shibboleth-sp/rc.shibboleth b/network/shibboleth-sp/rc.shibboleth
new file mode 100644
index 0000000000..8854433a97
--- /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