janvidar/uhub — pull request #17 by 3M3RY (2012-11-17 16:27:27+00:00)
Title: Systemd notify support

This is some more minor systemd stuff, what it does is uhub sends a status message and its PID through a unix socket to systemd to let it know that it's been successfully started. Like the logging this is optional and disabled by default. This way uhub lets systemd know when it has started rather than systemd just watching for it fork before moving on. This log output sums it up.

uhub[29977]: Starting uhub/0.4.1, listening on :::1511...
systemd[1]: Got notification message for unit uhub.service
systemd[1]: uhub.service: Got message
systemd[1]: uhub.service: got MAINPID=29977
systemd[1]: uhub.service: got READY=1
systemd[1]: uhub.service changed start -> running
systemd[1]: Job uhub.service/start finished, result=done
systemd[1]: Started high performance ADC peer-to-peer hub.