[Samba] Option configure

Achim Gottinger achim at ag-web.biz
Wed Jul 13 23:44:57 UTC 2016



Am 13.07.2016 um 18:37 schrieb Sonic:
> If indeed it generally works either way, that is with Type=fork and
> Type=notify is one actually preferable than the other?
>
> As I posted earlier - systemd says:
> "If set to forking, it is expected that the process configured with
> ExecStart= will call fork() as part of its start-up. The parent
> process is expected to exit when start-up is complete and all
> communication channels are set up. The child continues to run as the
> main daemon process. This is the behavior of traditional UNIX
> daemons."
>
> Does the above actually occur with the nmbd, smbd, and samba binaries?
> IOW, do they act, in this sense, like traditional UNIX daemons? If so,
> maybe Type=fork is the preferred method, if not, maybe Type=notify
> should be used.
>
> Chris
The advantage of the notify mode is that the samba binary decides if it 
has succesfully started. It depends on working systemd-notify 
environment and builtin systemd support in samba.

Found an older bug reports about systemd-notify and lxc.
https://lists.freedesktop.org/archives/systemd-bugs/2014-March/002416.html



More information about the samba mailing list