Install systemd service file if systemd is available

This commit is contained in:
Miklos Vajna
2011-03-29 09:27:54 +02:00
committed by Martin Willi
parent 7aa2d1ca49
commit fc16b361ef
5 changed files with 34 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
EXTRA_DIST = strongswan.service.in
CLEANFILES = strongswan.service
systemdsystemunit_DATA = strongswan.service
strongswan.service : strongswan.service.in
sed -e "s:@SBINDIR@:$(sbindir):" $(srcdir)/$@.in > $@
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=strongSwan IPsec
After=syslog.target
[Service]
ExecStart=@SBINDIR@/ipsec start --nofork
StandardOutput=syslog
[Install]
WantedBy=multi-user.target