aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-06-19 17:12:53 +0200
committerTobias Brunner <tobias@strongswan.org>2012-06-25 16:53:38 +0200
commitbc6d9447058c946b199daf0defc8869bea92ba5e (patch)
treed73c02e2c5bdd496df348dbe815758246366fb8d /init
parentd86cf32b4be46039a25986224a56fd7b03c84718 (diff)
downloadstrongswan-bc6d9447058c946b199daf0defc8869bea92ba5e.tar.bz2
strongswan-bc6d9447058c946b199daf0defc8869bea92ba5e.tar.xz
Added an option to rename the ipsec script during installation
Also rename the man page and adjust all references in the script, the man page and other files. Closes #194.
Diffstat (limited to 'init')
-rw-r--r--init/systemd/Makefile.am5
-rw-r--r--init/systemd/strongswan.service.in2
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]