mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Better way to restart services in v-update-host-certificate
This commit is contained in:
parent
d942f85d31
commit
082095b164
1 changed files with 7 additions and 5 deletions
|
@ -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 #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue