From 69bd70195d3a1442ef17fc8ce833dcbe0d000a9e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 2 Oct 2017 21:52:33 +0200 Subject: [PATCH] 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) --- debian/lldpd.upstart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5