Hi,

This can be fixed (worked around) by letting the start/stop script create/remove a symlink to the pid file in /lib/init/rw/sendsigs.omit.d (for squeeze) that points to the PID file.

Sendsigs will no longer send TERM and KILL signals to the daemon then.

For testing the sendsigs.omit.d is probably under /run somewhere now.

Patch for squeeze in in attach. For testing and unstable, the sendsigs.omit.d is now in /run: /run/sendsigs.omit.d

Regards,

Rik
--- openvpn.orig	2011-11-17 13:04:48.889161154 +0100
+++ openvpn	2011-11-17 13:06:40.197161202 +0100
@@ -63,10 +63,13 @@
         --exec $DAEMON -- $OPTARGS --writepid /var/run/openvpn.$NAME.pid \
         $DAEMONARG $STATUSARG --cd $CONFIG_DIR \
         --config $CONFIG_DIR/$NAME.conf || STATUS=1
+
+    ln -s /var/run/openvpn.$NAME.pid /lib/init/rw/sendsigs.omit.d/openvpn.$NAME.pid
 }
 stop_vpn () {
   kill `cat $PIDFILE` || true
   rm -f $PIDFILE
+  rm -f /lib/init/rw/sendsigs.omit.d/openvpn.$NAME.pid
   rm -f /var/run/openvpn.$NAME.status 2> /dev/null
 }
 

Reply via email to