From: Vincent Bernat Date: Mon, 2 Oct 2017 19:52:33 +0000 (+0200) Subject: daemon: don't fork at all when using upstart X-Git-Tag: 0.9.9~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1602c2246fbb01f50ace2e6f83b4e76d20d95adc;p=thirdparty%2Flldpd.git daemon: don't fork at all when using upstart It seems there is a bug in Upstart state machine. If the process fail before daemonizing, Upstart says the process will be respawned but that's not the case. Moreover, Upstart has difficulty to correctly track daemonization of lldpd (it is confused by the additional process spawning after initial daemonization, for some reason?). Fix #245 (for real) --- diff --git a/debian/lldpd.upstart b/debian/lldpd.upstart index 9de68e06..1f1421b0 100644 --- a/debian/lldpd.upstart +++ b/debian/lldpd.upstart @@ -9,10 +9,9 @@ description "LLDP daemon" start on net-device-up IFACE=lo stop on runlevel [06] -expect daemon respawn script . /etc/default/lldpd - exec lldpd $DAEMON_ARGS + exec lldpd -d $DAEMON_ARGS end script