=== modified file 'init.d-mandos' --- init.d-mandos 2013-10-20 15:25:09 +0000 +++ init.d-mandos 2013-10-26 19:05:21 +0000 @@ -23,7 +23,11 @@ NAME=mandos DAEMON=/usr/sbin/$NAME DAEMON_ARGS="" -PIDFILE=/run/$NAME.pid +if [ -d /run/. ]; then + PIDFILE=/run/$NAME.pid +else + PIDFILE=/var/run/$NAME.pid +fi SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed === modified file 'mandos' --- mandos 2013-10-24 20:38:44 +0000 +++ mandos 2013-10-26 19:05:21 +0000 @@ -2457,6 +2457,8 @@ or None)) if not foreground: pidfilename = "/run/mandos.pid" + if not os.path.isdir("/run/."): + pidfilename = "/var/run/mandos.pid" pidfile = None try: pidfile = open(pidfilename, "w") === modified file 'mandos.xml' --- mandos.xml 2013-10-24 20:21:45 +0000 +++ mandos.xml 2013-10-26 19:05:21 +0000 @@ -2,7 +2,7 @@ - + %common; ]> @@ -523,6 +523,10 @@ The file containing the process id of the &COMMANDNAME; process started last. + Note: If the /run directory does not + exist, /var/run/mandos.pid will be + used instead.