3 # Apache kstart wrapper by anders.
6 SCRIPT=/etc/init.d/apache2.invirt-orig
7 KSTART_PIDFILE=/var/run/k5start-apache2.pid
8 KSTART_KEYTAB=/etc/apache2/keytab
10 export AFSCELL=sipb.mit.edu
13 TMP_PIDFILE=$(mktemp /tmp/k5start-apache2.pid-XXXXXX)
14 chown www-data "$TMP_PIDFILE"
15 export KRB5CCNAME=$(mktemp /tmp/krb5cc_33.kstart-XXXXXX)
16 chown www-data $KRB5CCNAME
17 /sbin/start-stop-daemon --start --pidfile "$TMP_PIDFILE" -c www-data \
18 --exec /usr/bin/k5start -- -b -p "$TMP_PIDFILE" \
19 -f "$KSTART_KEYTAB" -K10 -u daemon -i sipb-xen.mit.edu -S afs -I sipb.mit.edu -t -b
20 cat "$TMP_PIDFILE" >|"$KSTART_PIDFILE"
24 if [ -e $KSTART_PIDFILE ]; then
25 /sbin/start-stop-daemon --stop --pidfile $KSTART_PIDFILE
28 echo -n " ... no kstart pidfile"
34 echo -n "Starting kstart for Apache2: k5start"
41 echo -n "Stopping kstart for Apache2: k5start"