Re: Samba Config Reload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--On Thursday, April 07, 2022 12:30 PM +0200 Lennart Poettering <mzerqung@xxxxxxxxxxx> 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






[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux