Files
novacpx/deploy/novacpx-web.service
myron bcd3b65520 Run panel on dedicated novacpx-web Nginx service; fix auth/transaction methods
- deploy/nginx-panel.conf: standalone Nginx config for ports 8880-8883
- deploy/novacpx-web.service: systemd unit, survives apache2/nginx stop
- server_setup.php: fix Auth::requireRole() -> require('admin')
- DB.php: add beginTransaction()/commit()/rollback() methods
2026-06-09 16:00:32 +00:00

20 lines
482 B
Desktop File

[Unit]
Description=NovaCPX Panel Web Server (dedicated Nginx)
After=network.target php8.3-fpm.service
Wants=php8.3-fpm.service
[Service]
Type=forking
PIDFile=/run/novacpx-nginx.pid
ExecStartPre=/usr/sbin/nginx -t -c /etc/novacpx/nginx-panel.conf
ExecStart=/usr/sbin/nginx -c /etc/novacpx/nginx-panel.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
TimeoutStopSec=5
PrivateTmp=true
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target