[systemd-devel] Samba Config Reload
Kenneth Porter
shiva at sewingwitch.com
Thu Apr 7 22:38:04 UTC 2022
--On Thursday, April 07, 2022 12:30 PM +0200 Lennart Poettering
<mzerqung at 0pointer.de> wrote:
> The other two options are likely similar, i.e. synchronous and talk to
> smbd directly. But I don't know samba that well, so it's just an
> assumption. In fact, if ExecStop= in smbd.service just calls the
> smbcontrol they behave very very similar.
FWIW, here's the unit file from samba-4.10.16-13 in CentOS 7.9:
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
[Install]
WantedBy=multi-user.target
More information about the systemd-devel
mailing list