1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +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.
This commit is contained in:
Kai Krakow 2017-09-19 20:36:13 +02:00
parent f59e311809
commit 62626aef7f

View File

@ -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%