[systemd-devel] Need advice on daemon's architecture

Jan Engelhardt jengelh at inai.de
Sun Nov 3 06:17:39 PST 2013


On Sunday 2013-11-03 14:42, Hoyer, Marko (ADITG/SW2) wrote:
>
>Isn't the classical Linux way an option to?
>- the daemon does its initialization with the calling thread
>- once it is done with the initialization, it forks off a process that goes on with the daemons work (the main loop probably)
>- the calling thread returns, which signals systemd that the daemon is up now
>Are there any drawbacks with this solution?

Yes, you forgot the other 12 ugly steps as described in daemon(7).
Which is why the classic way is not something worth the time.


More information about the systemd-devel mailing list