Install systemd service file if systemd is available
This commit is contained in:
committed by
Martin Willi
parent
7aa2d1ca49
commit
fc16b361ef
@@ -0,0 +1,6 @@
|
||||
|
||||
SUBDIRS =
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
SUBDIRS += systemd
|
||||
endif
|
||||
@@ -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 > $@
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=strongSwan IPsec
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@SBINDIR@/ipsec start --nofork
|
||||
StandardOutput=syslog
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user