[Pkg-samba-maint] Bug#796789: samba: Add systemd service file for samba-ad-dc

Michael Ziegler diese-addy at funzt-halt.net
Mon Aug 24 14:31:13 UTC 2015


Source: samba
Severity: normal

Dear Maintainer,

please include a systemd service definition file for samba-ad-dc. On my
machine (jessie), the init script redirects to systemd, which redirects
back to the init script, but nothing gets started after all.

I added this definition to /etc/systemd/system/samba-ad-dc.service which
got it to work:

    [Unit]
    Description=Samba4 AD DC
    After=network.target remote-fs.target nss-lookup.target
    
    [Service]
    Type=forking
    ExecStart=/usr/sbin/samba -D
    PIDFile=/var/run/samba/samba.pid
    
    [Install]
    WantedBy=multi-user.target

I'm not that familiar with services files though, so the "After" list
might need to be revised, but apart from that it seems to work.

Regards,
Michael

-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-samba-maint mailing list