1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

Adjust service restart and shutdown behavior

Explicitly set control-group kill mode, that is: try SIGTERM first, and
use SIGKILL after a timeout. This exactly defines how bees is running as
a child process within the frontend service starter. Not sure if bees cares
about signals but SIGTERM first seems cleaner. On the way, let bees restart
on abnormal termination.
Dieser Commit ist enthalten in:
Kai Krakow
2017-09-19 20:36:13 +02:00
Ursprung f59e311809
Commit 62626aef7f
+3
Datei anzeigen
@@ -6,7 +6,10 @@ After=local-fs.target
Type=simple
ExecStart=/usr/sbin/beesd %i
Nice=19
KillMode=control-group
KillSignal=SIGTERM
IOSchedulingClass=idle
Restart=on-abnormal
CPUAccounting=true
MemoryAccounting=true
# CPUQuota=95%