Update standards version to 3.8.3
[shibboleth/sp.git] / configs / shibd-debian.in
index 4c7894d..bcfd52b 100644 (file)
@@ -53,6 +53,9 @@ DAEMON_OPTS="$DAEMON_OPTS -w 30"
 
 case "$1" in
 start)
+    # Ensure @-PKGRUNDIR-@ exists.  /var/run may be on a tmpfs file system.
+    [ -d '@-PKGRUNDIR-@' ] || mkdir -p '@-PKGRUNDIR-@'
+
     # Don't start shibd if NO_START is set.
     if [ "$NO_START" = 1 ] ; then
         echo "Not starting $DESC (see /etc/default/$NAME)"
@@ -70,6 +73,9 @@ stop)
     echo "$NAME."
     ;;
 restart|force-reload)
+    # Ensure @-PKGRUNDIR-@ exists.  /var/run may be on a tmpfs file system.
+    [ -d '@-PKGRUNDIR-@' ] || mkdir -p '@-PKGRUNDIR-@'
+
     echo -n "Restarting $DESC: "
     start-stop-daemon --stop --quiet --pidfile $PIDFILE \
         --retry TERM/30/KILL/5 --exec $DAEMON