forked from ISTI-ansible-roles/ansible-roles
openvpn: restart the service after a certificate renewal.
This commit is contained in:
parent
0d0e4ca39f
commit
56c7fd5b17
|
@ -17,9 +17,9 @@ fi
|
|||
|
||||
echo "Reload the openvpn service" >> $LE_LOG_DIR/openvpn.log
|
||||
if [ -x /bin/systemctl ] ; then
|
||||
systemctl reload openvpn >> $LE_LOG_DIR/openvpn.log 2>&1
|
||||
systemctl restart openvpn >> $LE_LOG_DIR/openvpn.log 2>&1
|
||||
else
|
||||
service openvpn reload >> $LE_LOG_DIR/openvpn.log 2>&1
|
||||
service openvpn restart >> $LE_LOG_DIR/openvpn.log 2>&1
|
||||
fi
|
||||
|
||||
echo "Done." >> $LE_LOG_DIR/openvpn.log
|
||||
|
|
Loading…
Reference in New Issue