diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/systemd/Makefile.am | 5 | ||||
-rw-r--r-- | init/systemd/strongswan.service.in | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/init/systemd/Makefile.am b/init/systemd/Makefile.am index e2bbfc451..bdbf502e4 100644 --- a/init/systemd/Makefile.am +++ b/init/systemd/Makefile.am @@ -5,4 +5,7 @@ CLEANFILES = strongswan.service systemdsystemunit_DATA = strongswan.service strongswan.service : strongswan.service.in - sed -e "s:@SBINDIR@:$(sbindir):" $(srcdir)/$@.in > $@ + sed \ + -e "s:@SBINDIR@:$(sbindir):" \ + -e "s:@IPSEC_SCRIPT@:$(ipsec_script):" \ + $(srcdir)/$@.in > $@ diff --git a/init/systemd/strongswan.service.in b/init/systemd/strongswan.service.in index e8dc5e819..dee892e90 100644 --- a/init/systemd/strongswan.service.in +++ b/init/systemd/strongswan.service.in @@ -3,7 +3,7 @@ Description=strongSwan IPsec After=syslog.target [Service] -ExecStart=@SBINDIR@/ipsec start --nofork +ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork StandardOutput=syslog [Install] |