mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-03 15:51:33 +01:00
preserve 'status' action as per openrc standard. renamed to fullstatus similar to apache2. ref #4979
31 lines
510 B
Plaintext
31 lines
510 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
description="strongSwan charon IKE daemon"
|
|
command="/usr/lib/strongswan/charon"
|
|
pidfile="/var/run/charon.pid"
|
|
start_stop_daemon_args="--background"
|
|
extra_started_commands="reload fullstatus"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
provide ipsec
|
|
}
|
|
|
|
start_post() {
|
|
ebegin "Loading ${name:-$RC_SVCNAME} configuration"
|
|
sleep 0.2
|
|
swanctl --load-all &>/dev/null
|
|
eend $?
|
|
}
|
|
|
|
reload() {
|
|
swanctl --reload-settings
|
|
swanctl --load-all
|
|
}
|
|
|
|
fullstatus() {
|
|
swanctl --list-conns
|
|
swanctl --list-sas
|
|
}
|