Evite de polluer cron avec active toutes les minutes

This commit is contained in:
Gabriel Detraz 2015-09-02 10:31:34 +02:00
parent c035723e54
commit 394597c186

View file

@ -4,7 +4,7 @@ MAIN_ROUTER=odlyd
BACK_ROUTER=freebox BACK_ROUTER=freebox
vpn_is_running () { vpn_is_running () {
if systemctl is-active openvpn@$1 if systemctl is-active openvpn@$1 &> /dev/null
then return 0 then return 0
else return 1 else return 1
fi fi