packaging: add configure option to preprocess and install systemd files
[garming/samba-autobuild/.git] / packaging / systemd / winbind.service.in
similarity index 59%
rename from packaging/systemd/winbind.service
rename to packaging/systemd/winbind.service.in
index 46b3797251dc362695abc1bd2c40032d8461d953..5ac5adc846f4f40a6dcdc497cf5143e1a67398ba 100644 (file)
@@ -5,11 +5,12 @@ After=syslog.target network.target nmb.service
 [Service]
 Type=notify
 NotifyAccess=all
-PIDFile=/run/winbindd.pid
-EnvironmentFile=-/etc/sysconfig/samba
-ExecStart=/usr/sbin/winbindd --foreground --no-process-group "$WINBINDOPTIONS"
+PIDFile=@PIDDIR@/winbindd.pid
+EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
+ExecStart=@SBINDIR@/winbindd --foreground --no-process-group "$WINBINDOPTIONS"
 ExecReload=/usr/bin/kill -HUP $MAINPID
 LimitCORE=infinity
+@systemd_winbind_extra@
 
 [Install]
 WantedBy=multi-user.target