3 # Startup script for the Shibboleth Service Provider Daemon
6 # description: Shibboleth 2 Service Provider Daemon
8 # pidfile: @-VARRUNDIR-@/shibd.pid
9 # config: @-PKGSYSCONFDIR-@/shibboleth2.xml
11 # Source function library.
12 . /etc/rc.d/init.d/functions
13 shibd="@-PREFIX-@/sbin/shibd"
15 pidfile=@-VARRUNDIR-@/shibd.pid
20 echo -n $"Starting $prog: "
21 if [ -f /var/lock/subsys/shibd ] ; then
22 if [ -f $pidfile ]; then
24 if checkpid $kpid 2>&1; then
25 echo "process already running"
28 echo "lock file found but no process running for pid $kpid, continuing"
33 export SHIBD_PID=$pidfile
35 chown $SHIBD_USER:$SHIBD_USER $pidfile
36 # daemon function just hangs, so I'm using su directly
37 su - $SHIBD_USER -c "$shibd -p $pidfile -f &"
41 [ $RETVAL = 0 ] && touch /var/lock/subsys/shibd
46 echo -n $"Stopping $prog: "
47 if [ -f $pidfile ]; then
56 [ $RETVAL = 0 ] && rm -f /var/lock/subsys/shibd $pidfile
59 # See how we were called.
77 echo $"Usage: $prog {start|stop|restart}"