Skip to content

Commit 082095b

Browse files
authored
Better way to restart services in v-update-host-certificate
1 parent d942f85 commit 082095b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bin/v-update-host-certificate

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ chown $exim_user:mail $VESTA/ssl/certificate.crt
7272
chown $exim_user:mail $VESTA/ssl/certificate.key
7373

7474
# Restart exim, dovecot & vesta
75-
v-restart-mail
76-
v-restart-service dovecot
77-
v-restart-service vesta
78-
79-
75+
$BIN/v-restart-mail
76+
if [ ! -z "$IMAP_SYSTEM" ]; then
77+
$BIN/v-restart-service "$IMAP_SYSTEM"
78+
fi
79+
if [ -f "/var/run/vesta-nginx.pid" ]; then
80+
kill -HUP $(cat /var/run/vesta-nginx.pid)
81+
fi
8082

8183
#----------------------------------------------------------#
8284
# Vesta #

0 commit comments

Comments
 (0)