@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

nginx再起動時に設定ファイルのテストをする

再起動しようとして、起動にこけると困るのでテストして通れば再起動する。

ついでにログも監視する。

systemd用です。

sudo nginx -t -c /etc/nginx/nginx.conf && sudo sh -c 'systemctl restart nginx; journalctl -f -u nginx'