mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
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>
This commit is contained in:
@@ -10,6 +10,8 @@ command_background="yes"
|
||||
capabilities="^cap_net_bind_service"
|
||||
pidfile="/run/frankenphp/frankenphp.pid"
|
||||
start_stop_daemon_args="--chdir /var/lib/frankenphp"
|
||||
respawn_delay=3
|
||||
respawn_max=10
|
||||
|
||||
depend() {
|
||||
need net
|
||||
|
||||
@@ -12,6 +12,8 @@ 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
|
||||
|
||||
@@ -12,6 +12,8 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user