Closed ahesford closed 4 years ago
This is a nice and very simple to implement idea; it will surely get into next Clightd release. Thank you for taking the time to open this issue!
Fixed by commit 14d0bded9d14921939f4dd40e857c292010aba10 on devel branch! Again, thanks for your input. This will be available in next release.
Currently,
clightd
fails to start ifdbus
is not already running, asclightd
cannot find the necessarydbus
system bus. Ifdbus
is running prior to launchingclightd
,clightd
will launch as expected. However, ifdbus
is killed whileclightd
is running and attached to the bus,clightd
will not die, but will instead repeatedly print error messages about an inability to connect to the bus.It would be better if
clightd
died when it loses its connection to thedbus
system bus. This allows service management to do the right thing when starting or restartingdbus
, becauseclightd
will terminate and the service manager can restart it. Otherwise, killing or restartingdbus
whileclightd
is running will causeclightd
to become inoperable, but the system service manager will not do the right thing and restart the daemon.