The Samba-Bugzilla – Bug 13129
The samba daemons should not double fork when started by systemd
Last modified: 2017-11-14 10:51:08 UTC
The samba daemons should not double fork when started by systemd. The problem in notify mode if we double fork, systemd is sending SIGTERM to the process so the startup fails.
They need to be started with -foreground and --no-process-group.
The 'samba' binary doesn't support that yet. Patches will follow.
Take care (and example) of how selftest.pl starts Samba. It would be great if this was more consistent, without breaking existing configurations.