Files
archived-frankenphp/package/debian/frankenphp.service
Marc f068912dee Add restart policies to frankenphp service (#2191)
interestingly Caddy doesn't have restart policies defined - we can't
afford this as php may segfault

---------

Signed-off-by: Marc <m@pyc.ac>
2026-02-16 14:45:49 +01:00

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