Reload nginx.service

This commit is contained in:
hygienic-books 2024-12-25 19:35:02 +01:00
parent b38056a70a
commit d01155a616

5
nginx_systemd_reload.sh Executable file
View 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