I have no /etc/default/samba file. If you run an ad-dc use samba-ad-dc.service, if not use the smbd, nmbd and winbind service files and not the samba.service. Am 12.07.2016 um 22:01 schrieb Sonic:> On Tue, Jul 12, 2016 at 3:25 PM, Achim Gottinger <achim at ag-web.biz> wrote: >> This is the samba-ad-dc.service script: > Pretty similar to my samba.service script: > ==================================> [Unit] > Description=Samba AD server > After=network.target > > [Service] > Type=forking > PIDFile=/usr/local/samba/var/run/samba.pid > LimitNOFILE=16384 > ExecStart=/usr/local/samba/sbin/samba > ExecReload=/bin/kill -HUP $MAINPID > > [Install] > WantedBy=multi-user.target > ==================================> > However the substitution below fails for me. > -Type=forking > +Type=notify > +NotifyAccess=all > > I'm compiling samba-master from source. > > Would like to know what your EnvironmentFile contains, maybe that's > needed for Type=notify. > > Chris
On Tue, Jul 12, 2016 at 4:06 PM, Achim Gottinger <achim at ag-web.biz> wrote:> I have no /etc/default/samba file.Suspected that much. It isn't then a neccessary entry in the service file.> If you run an ad-dc use samba-ad-dc.service, if not use the smbd, nmbd and > winbind service files and not the samba.service.On my standalone file server I just run nmbd.service and smbd.service, no need for winbind at all. On my test AD system I've always run the samba.service (my equivalent of your samba-ad-dc.service file), which starts the sbin/samba binary. The oddity here is that with Type=notify samba dies shortly after starting. Chris
Am 12.07.2016 um 22:19 schrieb Sonic:> On Tue, Jul 12, 2016 at 4:06 PM, Achim Gottinger <achim at ag-web.biz> wrote: >> I have no /etc/default/samba file. > Suspected that much. It isn't then a neccessary entry in the service file. > >> If you run an ad-dc use samba-ad-dc.service, if not use the smbd, nmbd and >> winbind service files and not the samba.service. > On my standalone file server I just run nmbd.service and smbd.service, > no need for winbind at all. > On my test AD system I've always run the samba.service (my equivalent > of your samba-ad-dc.service file), which starts the sbin/samba binary. > The oddity here is that with Type=notify samba dies shortly after > starting. > > ChrisDid you mask smbd and nmbd services on your addc server? Only the samba binary must be started it invokes smbd nmbd (winbindd). achim~