mirror of
https://github.com/Qbix/webserver.git
synced 2026-07-22 07:57:23 +02:00
26 lines
676 B
Desktop File
26 lines
676 B
Desktop File
[Unit]
|
|
Description=Qbix Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
WorkingDirectory=/var/www/myapp
|
|
ExecStart=/usr/bin/php /var/www/myapp/qbixserver.php --root=./web --port=8080 --pid=/var/run/qbixserver.pid
|
|
ExecStop=/usr/bin/php /var/www/myapp/qbixserver.php --stop --pid=/var/run/qbixserver.pid
|
|
ExecReload=/usr/bin/php /var/www/myapp/qbixserver.php --reload --pid=/var/run/qbixserver.pid
|
|
PIDFile=/var/run/qbixserver.pid
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/www/myapp /var/run
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|