From bc6d9447058c946b199daf0defc8869bea92ba5e Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 19 Jun 2012 17:12:53 +0200 Subject: 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. --- init/systemd/Makefile.am | 5 ++++- init/systemd/strongswan.service.in | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'init') 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] -- cgit v1.2.3