Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] shibd init script for SuSE?

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] shibd init script for SuSE?


Chronological Thread 
  • From: Bernd Oberknapp <>
  • To:
  • Subject: Re: [Shib-Dev] shibd init script for SuSE?
  • Date: Sun, 9 Aug 2009 16:50:02 +0200 (CEST)
  • Delivery-date: Sun, 09 Aug 2009 16:50:04 +0200

On Sat, 8 Aug 2009, Scott Cantor wrote:

> I assume there's a semi-"standard" shibd init script floating around for
> SuSE? I'd like to check it in and get it managed by the RPM package if I can
> get a pointer to an agreed upon version.

I'm only aware of <https://aai-wiki.univie.ac.at/SuSE/Init-Script>. I'm
using a similar script (attached, tested with openSUSE 10.2 and 11.1).

For openSUSE/SLES compatibility you should also create the symlink
/usr/sbin/rcshibd.

Best regards,
Bernd

-- --------------------------------------------------------------------- --
Dipl.-Math. Bernd Oberknapp Universitaetsbibliothek Freiburg
Tel: +49-761 / 203-3852 Rempartstrasse 10-16 | Postfach 1629
Fax: +49-761 / 203-3987 79098 Freiburg | 79016 Freiburg#!/bin/sh
#
# /etc/init.d/shibd
#
### BEGIN INIT INFO
# Provides: shibd
# Required-Start: $local_fs $remote_fs $network
# Should-Start: $time
# Should-Stop: $time
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Shibboleth shibd
# Description: Start the Shibboleth shibd daemon
### END INIT INFO

SHIBD_BIN=/usr/sbin/shibd
SHIBD_CONFIG=/etc/shibboleth/shibboleth2.xml
SHIBD_PIDFILE=/var/run/shibboleth/shibd.pid

. /etc/rc.status
rc_reset

if ! [ -x $SHIBD_BIN ]; then
echo >&2 $SHIBD_BIN is missing
# service not installed
rc_failed 5
rc_status -v1
rc_exit
fi

if ! [ -f $SHIBD_CONFIG ]; then
echo >&2 $SHIBD_CONFIG is missing
# service not configured
rc_failed 6
rc_status -v1
rc_exit
fi

case "$1" in
start)
echo -n "Starting shibd daemon"
startproc $SHIBD_BIN -f -p $SHIBD_PIDFILE
rc_status -v
;;
stop)
echo -n "Shutting down shibd daemon"
killproc -p $SHIBD_PIDFILE -TERM $SHIBD_BIN
rc_status -v
;;
try-restart)
$0 status >/dev/null && $0 restart
rc_status
;;
restart)
$0 stop
sleep 1
$0 start
rc_status
;;
force-reload)
# reload not supported, restart instead
$0 try-restart
rc_status
;;
reload)
echo -n "Reloading shibd daemon"
# not supported
rc_failed 3
rc_status -v
;;
configtest)
$SHIBD_BIN -t
rc_failed $?
rc_status -v1
;;
status)
echo -n "Checking for shibd daemon"
checkproc -p $SHIBD_PIDFILE $SHIBD_BIN
rc_status -v
;;
*)
echo "Usage: $0
{start|stop|try-restart|restart|force-reload|reload|configtest|status}"
exit 1
;;
esac
rc_exit



Archive powered by MHonArc 2.6.16.

Top of Page