systemd: Only start samba and nmbd when network interfaces are up
[kai/samba-autobuild/.git] / packaging / systemd / samba.service
1 [Unit]
2 Description=Samba AD Daemon
3 Wants=network-online.target
4 After=syslog.target network.target network-online.target
5
6 [Service]
7 Type=notify
8 NotifyAccess=all
9 PIDFile=/run/samba.pid
10 LimitNOFILE=16384
11 EnvironmentFile=-/etc/sysconfig/samba
12 ExecStart=/usr/sbin/samba --foreground --no-process-group $SAMBAOPTIONS
13 ExecReload=/usr/bin/kill -HUP $MAINPID
14
15 [Install]
16 WantedBy=multi-user.target