[Samba] Option configure

Rowland penny rpenny at samba.org
Tue Jul 12 20:21:52 UTC 2016


On 12/07/16 21:03, Achim Gottinger wrote:
>
>
> Am 12.07.2016 um 21:35 schrieb Rowland penny:
>> On 12/07/16 20:25, Achim Gottinger wrote:
>>> Just backported 4.4.5 from debian sid to jessie. samba.service is 
>>> masked there. If running as an fileserver the services are started 
>>> via smbd.service,nmbd.service, winbind.service.
>>> There is an samba-ad-dc script which is masked by default.
>>> To get the ad-dc up and running with systemd one has to unmask 
>>> samba-ad-dc.service and mask smbd.service,nmbd.service, 
>>> winbind.service.
>>>
>>>  This is the samba-ad-dc.service script:
>>>
>>> [Unit]
>>>
>>> Description=Samba AD Daemon
>>>
>>> Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
>>>
>>> After=network.target
>>>
>>> [Service]
>>>
>>> Type=notify
>>>
>>> NotifyAccess=all
>>>
>>> PIDFile=/run/samba.pid
>>>
>>> LimitNOFILE=16384
>>>
>>> EnvironmentFile=-/etc/default/samba
>>>
>>> ExecStart=/usr/sbin/samba $SAMBAOPTIONS
>>>
>>> ExecReload=/bin/kill -HUP $MAINPID
>>>
>>> [Install]
>>>
>>> WantedBy=multi-user.target
>>>
>>>
>>
>> that is basically what init scripts do, i.e if fileserver start the 
>> nmbd, smbd and winbindd binaries, if AD DC just start the samba 
>> binary, but is this what Sonic is doing ?
>>
>> Rowland
>>
>>
> He mentioned using systemctl start samba.
> I can not run this here becuase it is masked an no samba.service file 
> exists in the backport.
> This is intentional on debian see here. 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769714
> With LSB init scripts the samba script started smbd,nmbd and 
> samba-ad-dc scripts. These checked smb.conf for the addc role and 
> decided themselfes if they must start or not.

Yes, the 'samba' init script on debian was a bit brain-dead, but you 
didn't have to use it, you could individually run the scripts it started.

> Updating debian from backported 4.4.3 to backported 4.4.5 was abit 
> messy (thank you systemd).

I have never had a problem updating Samba, but then again, I refuse to 
use systemd.

Rowland




More information about the samba mailing list