charon-tkm: Don't use starter/stroke with charon-tkm anymore

For the tests, the unused init script that was used before switching to
charon-systemd is repurposed to manage the daemon.
This commit is contained in:
Tobias Brunner
2021-01-11 15:28:01 +01:00
parent b322539ef5
commit 16fcdb460a
70 changed files with 449 additions and 342 deletions
@@ -1,12 +1,12 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: charon
# Provides: charon-tkm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: strongSwan charon IKE daemon
# Description: with swanctl the strongSwan charon daemon must be
# Short-Description: strongSwan charon-tkm IKE daemon
# Description: with swanctl the strongSwan charon-tkm daemon must be
# running in the background
### END INIT INFO
@@ -16,12 +16,12 @@
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="strongSwan charon IKE daemon"
NAME=charon
DESC="strongSwan charon-tkm IKE daemon"
NAME=charon-tkm
DAEMON=/usr/local/libexec/ipsec/$NAME
DAEMON_ARGS=""
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/charon
SCRIPTNAME=/etc/init.d/charon-tkm
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0