mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Starting bees right after local-fs.target is probably not what we want, as basic setup of the system might not have been done (like udev, cryptsetup, sysctl, swap, etc). Let's start only after sysinit.target instead which guarantees that all basic setup has been done, most importantly, sysctl, udev, and swap have been setup which may apply important tweaks, configuration, and tuning. Signed-off-by: Kai Krakow <kai@kaishome.de>
25 lines
458 B
SYSTEMD
25 lines
458 B
SYSTEMD
[Unit]
|
|
Description=Bees - Best-Effort Extent-Same, a btrfs deduplicator daemon: %i
|
|
After=sysinit.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/sbin/beesd %i
|
|
Nice=19
|
|
KillMode=control-group
|
|
KillSignal=SIGTERM
|
|
CPUShares=128
|
|
StartupCPUShares=256
|
|
BlockIOWeight=100
|
|
StartupBlockIOWeight=250
|
|
IOSchedulingClass=idle
|
|
IOSchedulingPriority=7
|
|
CPUSchedulingPolicy=batch
|
|
Nice=19
|
|
Restart=on-abnormal
|
|
CPUAccounting=true
|
|
MemoryAccounting=true
|
|
|
|
[Install]
|
|
WantedBy=basic.target
|