packaging: add configure option to preprocess and install systemd files
[garming/samba-autobuild/.git] / packaging / systemd / samba.service.in
similarity index 62%
rename from packaging/systemd/samba.service
rename to packaging/systemd/samba.service.in
index 79b22a0da7a29044f76479fde9085a2abfbf16bf..c418150946143293a12f2f34b41b538bd97aa80c 100644 (file)
@@ -6,11 +6,12 @@ After=syslog.target network.target network-online.target
 [Service]
 Type=notify
 NotifyAccess=all
-PIDFile=/run/samba.pid
+PIDFile=@PIDDIR@/samba.pid
 LimitNOFILE=16384
-EnvironmentFile=-/etc/sysconfig/samba
-ExecStart=/usr/sbin/samba --foreground --no-process-group $SAMBAOPTIONS
+EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
+ExecStart=@SBINDIR@/samba --foreground --no-process-group $SAMBAOPTIONS
 ExecReload=/usr/bin/kill -HUP $MAINPID
+@systemd_samba_extra@
 
 [Install]
 WantedBy=multi-user.target