I am sorry for the silly question, but how does one restart the PUNs?
I used to do sudo touch /var/www/ood/apps/sys/shell/tmp/restart.txt sudo systemctl try-restart httpd24-httpd.service httpd24-htcacheclean.service
but that would not always pick up the changes in “/etc/ood/config/clusters.d/” and “/var/www/ood/apps/sys/shell/”.
Using “sudo /opt/ood/nginx_stage/sbin/nginx_stage nginx_clean -f” now works for me, but if there is a better and more correct way, I would definiltey like to know.
Not silly at all! You have a button up at the top right of the dashboard, under the help tab to ‘restart web server’. That’s it, and it’ll restart just your PUN, no sudo required.
It calls the api /nginx/stop?redir=/pun/sys/dashboard/ which in turn calls nginx_stage to stop your PUN, but also gives your browser a 302 redirect so that you end up starting it again.