]> git.ipfire.org Git - thirdparty/lldpd.git/commit
debian: provide an upstart job
authorVincent Bernat <bernat@luffy.cx>
Sun, 6 Jan 2013 23:24:31 +0000 (00:24 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 6 Jan 2013 23:33:04 +0000 (00:33 +0100)
commit2591639f6f8128f53624453ed7261dc315c097f6
tree216133e5be88b72ae8c4fb285df6457f93eaff38
parent2b35e2d075dae08f121de1d66fe6731299991911
debian: provide an upstart job

lldpd daemonization seems to confuse upstart (I think this is because
it also forks the monitor process, otherwise the daemonization is
pretty classic). Therefore, when we detect we are run by
upstart (because of UPSTART_JOB variable), we raise the SIGSTOP signal
instead of daemonizing. Upstart notices it and will resume us and
consider we are ready. No more misleading fork.

Also, ignore SIGHUP which is used for reload.
debian/lldpd.init.d
debian/lldpd.upstart [new file with mode: 0644]
src/daemon/event.c
src/daemon/lldpd.c