mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
bcd3b65520
- 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
20 lines
482 B
Desktop File
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
|