From 56c7fd5b179d793faeb7f26956289ebdbc39e337 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 3 Jul 2019 11:29:51 +0200 Subject: [PATCH] openvpn: restart the service after a certificate renewal. --- library/roles/openvpn/files/openvpn-letsencrypt-acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/roles/openvpn/files/openvpn-letsencrypt-acme.sh b/library/roles/openvpn/files/openvpn-letsencrypt-acme.sh index 36d7f8bb..aec4da33 100644 --- a/library/roles/openvpn/files/openvpn-letsencrypt-acme.sh +++ b/library/roles/openvpn/files/openvpn-letsencrypt-acme.sh @@ -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