mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
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.
19 lines
342 B
Desktop File
19 lines
342 B
Desktop File
[Unit]
|
|
Description=Bees - Best-Effort Extent-Same, a btrfs deduplicator daemon: %i
|
|
After=local-fs.target
|
|
|
|
[Service]
|
|
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%
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|