mirror of
https://github.com/triffid/pia-wg.git
synced 2026-04-05 08:54:08 -04:00
openrc-init: keep a log so we can check what it's doing during startup
This commit is contained in:
@@ -5,6 +5,8 @@ command="/root/bin/pia-wg.sh"
|
||||
CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}"
|
||||
CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}"
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
need net sysfs
|
||||
after modules ip-rules
|
||||
@@ -29,7 +31,7 @@ start() {
|
||||
(
|
||||
export CONFIGDIR="$CONFIGDIR"
|
||||
export CONFIG="$CONFIG"
|
||||
while ! "$command"
|
||||
while "$command" 2>&1 | tee /var/log/pia-wg.log && [ ${PIPESTATUS[0]} -ne 0 ]
|
||||
do
|
||||
ewarn "Failed, retrying"
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user