From 082095b164171c07d6b8d105c031493eb81d5fc1 Mon Sep 17 00:00:00 2001 From: dpeca Date: Sat, 7 Apr 2018 00:20:35 +0200 Subject: [PATCH] Better way to restart services in v-update-host-certificate --- bin/v-update-host-certificate | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/v-update-host-certificate b/bin/v-update-host-certificate index 0f3324b9..e777afbd 100755 --- a/bin/v-update-host-certificate +++ b/bin/v-update-host-certificate @@ -72,11 +72,13 @@ chown $exim_user:mail $VESTA/ssl/certificate.crt chown $exim_user:mail $VESTA/ssl/certificate.key # Restart exim, dovecot & vesta -v-restart-mail -v-restart-service dovecot -v-restart-service vesta - - +$BIN/v-restart-mail +if [ ! -z "$IMAP_SYSTEM" ]; then + $BIN/v-restart-service "$IMAP_SYSTEM" +fi +if [ -f "/var/run/vesta-nginx.pid" ]; then + kill -HUP $(cat /var/run/vesta-nginx.pid) +fi #----------------------------------------------------------# # Vesta #