Bug 13129 - The samba daemons should not double fork when started by systemd
The samba daemons should not double fork when started by systemd
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB
4.7.1
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-10 08:27 UTC by Andreas Schneider
Modified: 2017-11-14 10:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2017-11-10 08:27:05 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.
Comment 1 Andrew Bartlett 2017-11-14 10:51:08 UTC
Take care (and example) of how selftest.pl starts Samba.  It would be great if this was more consistent, without breaking existing configurations.