systemd: Add samba service file.
[kai/samba.git] / packaging / systemd / samba.service
diff --git a/packaging/systemd/samba.service b/packaging/systemd/samba.service
new file mode 100644 (file)
index 0000000..d2db18c
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Samba AD Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/samba.pid
+LimitNOFILE=16384
+EnvironmentFile=-/etc/sysconfig/samba
+ExecStart=/usr/sbin/samba $SAMBAOPTIONS
+
+[Install]
+WantedBy=multi-user.target