Does your PIDFile exist?
systemd should use that if defined and exiting.
https://lists.freedesktop.org/archives/systemd-devel/2013-February/009201.html
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