packaging: add configure option to preprocess and install systemd files
[nivanova/samba-autobuild/.git] / packaging / systemd / nmb.service.in
diff --git a/packaging/systemd/nmb.service.in b/packaging/systemd/nmb.service.in
new file mode 100644 (file)
index 0000000..b0ba92f
--- /dev/null
@@ -0,0 +1,17 @@
+[Unit]
+Description=Samba NMB Daemon
+Wants=network-online.target
+After=syslog.target network.target network-online.target
+
+[Service]
+Type=notify
+NotifyAccess=all
+PIDFile=@PIDDIR@/nmbd.pid
+EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
+ExecStart=@SBINDIR@/nmbd --foreground --no-process-group $NMBDOPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
+LimitCORE=infinity
+@systemd_nmb_extra@
+
+[Install]
+WantedBy=multi-user.target