mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
* add WorkingDirectory to make mercure.db files work without absolut paths * make linter happy
23 lines
564 B
Desktop File
23 lines
564 B
Desktop File
[Unit]
|
|
Description=FrankenPHP server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=frankenphp
|
|
Group=frankenphp
|
|
ExecStartPre=/usr/bin/frankenphp validate --config /etc/frankenphp/Caddyfile
|
|
ExecStart=/usr/bin/frankenphp run --environ --config /etc/frankenphp/Caddyfile
|
|
ExecReload=/usr/bin/frankenphp reload --config /etc/frankenphp/Caddyfile
|
|
WorkingDirectory=/var/lib/frankenphp
|
|
TimeoutStopSec=5s
|
|
LimitNOFILE=1048576
|
|
LimitNPROC=512
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|