From 197d8676b5cff90e80397188d7eea34709d4da53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 22 Jan 2012 21:23:08 +0000 Subject: [PATCH] - remove pid on stop; it does not do that itself and on next startup thinks it has crashed Changed files: avahi-daemon.upstart -> 1.3 --- avahi-daemon.upstart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/avahi-daemon.upstart b/avahi-daemon.upstart index 5ecc34f..99b0096 100644 --- a/avahi-daemon.upstart +++ b/avahi-daemon.upstart @@ -13,4 +13,9 @@ end script exec /usr/sbin/avahi-daemon --syslog -# vi: ft=upstart +# somewhy avahi does not remove pid itself which causes it to report on startup: +# + exec /usr/sbin/avahi-daemon --syslog +# Process 3383 died: No such process; trying to remove PID file. (/var/run/avahi-daemon//pid) +post-stop script + rm -f /var/run/avahi-daemon/pid +end script -- 2.44.0