Bug 8235 - Services do not daemonize in a correct manner
Summary: Services do not daemonize in a correct manner
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 14:23 CEST by Pierre Ossman
Modified: 2023-10-03 13:07 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2023-10-02 14:23:51 CEST
The daemonization of all our services (vsmserver/vsmagent/tlwebaccess/tlwebadm) use a very basic daemonisation system. Basically, BSD's daemon() call. This mostly works, but doesn't fully conform to the proper way of doing things. In some cases, this can cause bugs or annoying behaviour.

One such example is that we don't properly signal back to the caller when we are done initialising. We always signal success, and we do so before the service is really up and running.

systemd has a nice summary of what is expected in a SysV daemonisation:

https://www.freedesktop.org/software/systemd/man/daemon.html
Comment 1 Pierre Ossman cendio 2023-10-02 14:25:01 CEST
We could also decide to delegate all of this by relying on systemd to do all of this for us. It would mean worse support for other init systems, though.

Note You need to log in before you can comment on or make changes to this bug.