Turns out sipb-xen-www's init script was the problem, not
[invirt/packages/invirt-web.git] / files / etc / init.d / apache2.invirt
index a017dc4..254508d 100755 (executable)
@@ -1,4 +1,12 @@
 #!/usr/bin/pagsh -e
+### BEGIN INIT INFO
+# Provides:          apache2
+# Required-Start:    $local_fs $remote_fs $network $syslog openafs-client
+# Required-Stop:     $local_fs $remote_fs $network $syslog openafs-client
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start/stop apache2 web server
+### END INIT INFO
 #
 # Apache kstart wrapper by anders.
 #
@@ -16,7 +24,7 @@ kstart_start () {
     chown www-data $KRB5CCNAME
     /sbin/start-stop-daemon --start --pidfile "$TMP_PIDFILE" -c www-data \
        --exec /usr/bin/k5start -- -b -p "$TMP_PIDFILE" \
-       -f "$KSTART_KEYTAB" -K10 -u daemon -i sipb-xen.mit.edu -S afs -I sipb.mit.edu -t -b
+       -U -f "$KSTART_KEYTAB" -K10 -S afs -I "$AFSCELL" -t -b
     cat "$TMP_PIDFILE" >|"$KSTART_PIDFILE"
     rm -f "$TMP_PIDFILE"
 }