mirror of
https://github.com/Zygo/bees.git
synced 2026-01-08 19:00:22 +00: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:
parent
f59e311809
commit
62626aef7f
1 changed files with 3 additions and 0 deletions
|
|
@ -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%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue