mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
Update openvpn.init
This commit is contained in:
parent
1bcb19e78f
commit
268ef9164d
@ -39,7 +39,7 @@ if test -e /etc/default/openvpn ; then
|
||||
fi
|
||||
|
||||
start_vpn () {
|
||||
OPENVPNLOG="/var/log/openvpn.log"
|
||||
OPENVPNLOG="/config/openvpn/$NAME.log"
|
||||
|
||||
if grep -q '^[ ]*daemon' $CONFIG_DIR/$NAME.ovpn ; then
|
||||
# daemon already given in config file
|
||||
@ -91,7 +91,7 @@ start_vpn () {
|
||||
--pidfile /run/openvpn/$NAME.pid \
|
||||
--exec $DAEMON -- $OPTARGS --writepid /run/openvpn/$NAME.pid \
|
||||
$DAEMONARG $STATUSARG --cd $CONFIG_DIR \
|
||||
--config $CONFIG_DIR/$NAME.ovpn $script_security >> $QBTLOG 2>&1 < /dev/null || STATUS=1
|
||||
--config $CONFIG_DIR/$NAME.ovpn $script_security >> $OPENVPNLOG 2>&1 < /dev/null || STATUS=1
|
||||
|
||||
[ "$OMIT_SENDSIGS" -ne 1 ] || ln -s /run/openvpn/$NAME.pid /run/sendsigs.omit.d/openvpn.$NAME.pid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user