Reload nginx.service
This commit is contained in:
parent
b38056a70a
commit
d01155a616
5
nginx_systemd_reload.sh
Executable file
5
nginx_systemd_reload.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
nginx -t || exit 1
|
||||||
|
if systemctl --quiet is-active nginx.service; then
|
||||||
|
systemctl try-reload-or-restart nginx.service || exit 1
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user