Preserve socket runtime directory
This commit is contained in:
@@ -150,6 +150,8 @@ owns `/run/uce/fastcgi.sock`; UCE validates and adopts the single named listener
|
|||||||
after exec. The listener therefore remains connectable and queues requests while
|
after exec. The listener therefore remains connectable and queues requests while
|
||||||
the service and its post-fork workers restart. Direct launches without systemd
|
the service and its post-fork workers restart. Direct launches without systemd
|
||||||
activation retain the existing configured Unix/TCP listener behavior.
|
activation retain the existing configured Unix/TCP listener behavior.
|
||||||
|
The service preserves its runtime directory across service restarts because the
|
||||||
|
socket unit, not the service unit, owns a listener path inside that directory.
|
||||||
On termination the parent asks render workers to close their listeners, finish
|
On termination the parent asks render workers to close their listeners, finish
|
||||||
accepted connections within the bounded worker drain interval, and only then
|
accepted connections within the bounded worker drain interval, and only then
|
||||||
exits. This prevents an accepted FastCGI request from being reset at handoff;
|
exits. This prevents an accepted FastCGI request from being reset at handoff;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Requires=uce.socket
|
|||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/usr/lib/uce
|
WorkingDirectory=/usr/lib/uce
|
||||||
RuntimeDirectory=uce
|
RuntimeDirectory=uce
|
||||||
|
RuntimeDirectoryPreserve=yes
|
||||||
StateDirectory=uce
|
StateDirectory=uce
|
||||||
CacheDirectory=uce
|
CacheDirectory=uce
|
||||||
ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions
|
ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Requires=uce.socket
|
|||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/Code/uce.openfu.com/uce
|
WorkingDirectory=/Code/uce.openfu.com/uce
|
||||||
RuntimeDirectory=uce
|
RuntimeDirectory=uce
|
||||||
|
RuntimeDirectoryPreserve=yes
|
||||||
StateDirectory=uce
|
StateDirectory=uce
|
||||||
CacheDirectory=uce
|
CacheDirectory=uce
|
||||||
ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions
|
ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions
|
||||||
|
|||||||
Reference in New Issue
Block a user