mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 09:02:11 +01:00
interestingly Caddy doesn't have restart policies defined - we can't afford this as php may segfault --------- Signed-off-by: Marc <m@pyc.ac>
27 lines
714 B
Desktop File
27 lines
714 B
Desktop File
[Unit]
|
|
Description=FrankenPHP - The modern PHP app server
|
|
Documentation=https://frankenphp.dev/docs/
|
|
After=network.target network-online.target
|
|
Requires=network-online.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
|
|
Restart=on-failure
|
|
RestartSec=3s
|
|
TimeoutStopSec=5s
|
|
LimitNOFILE=1048576
|
|
LimitNPROC=512
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|