Use 'restart' and not 'start' in the systemctl commands.
This commit is contained in:
parent
f31207e7cb
commit
47672b8c20
|
@ -31,9 +31,9 @@ if [ ! -f "$ACME_SH_CONFIG_HOME/ok_certificate_issued" ] && [ "$ACME_SH_USE_DNS_
|
|||
$ACME_SH_BIN $ACME_SH_FIRST_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1
|
||||
RETVAL=$?
|
||||
if [ -x /bin/systemctl ] ; then
|
||||
/bin/systemctl start nginx >/dev/null 2>&1
|
||||
/bin/systemctl start apache2 >/dev/null 2>&1
|
||||
/bin/systemctl start httpd >/dev/null 2>&1
|
||||
/bin/systemctl restart nginx >/dev/null 2>&1
|
||||
/bin/systemctl restart apache2 >/dev/null 2>&1
|
||||
/bin/systemctl restart httpd >/dev/null 2>&1
|
||||
else
|
||||
service nginx start >/dev/null 2>&1
|
||||
service apache2 start >/dev/null 2>&1
|
||||
|
|
Loading…
Reference in New Issue