Evite de polluer cron avec active toutes les minutes
This commit is contained in:
parent
c035723e54
commit
394597c186
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ MAIN_ROUTER=odlyd
|
|||
BACK_ROUTER=freebox
|
||||
|
||||
vpn_is_running () {
|
||||
if systemctl is-active openvpn@$1
|
||||
if systemctl is-active openvpn@$1 &> /dev/null
|
||||
then return 0
|
||||
else return 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue