Reload nginx.service
This commit is contained in:
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
|
Reference in New Issue
Block a user