mirror of
https://github.com/Zygo/bees.git
synced 2025-06-16 01:26:18 +02:00
Bees is meant to be run as root only
As bees is meant to be run as root only, move it to /usr/sbin which is usually not part of normal users path environment.
This commit is contained in:
@ -18,7 +18,7 @@ readonly CONFIG_DIR=/etc/bees/
|
||||
## Pre checks
|
||||
{
|
||||
[ ! -d "$CONFIG_DIR" ] && ERRO "Missing: $CONFIG_DIR"
|
||||
[ "$UID" == "0" ] || ERRO "Must be runned as root"
|
||||
[ "$UID" == "0" ] || ERRO "Must be run as root"
|
||||
}
|
||||
|
||||
command -v /usr/libexec/bees &> /dev/null || ERRO "Missing 'bees' agent"
|
||||
|
@ -3,7 +3,7 @@ Description=Bees - Best-Effort Extent-Same, a btrfs deduplicator daemon: %i
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/beesd %i
|
||||
ExecStart=/usr/sbin/beesd %i
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
CPUAccounting=true
|
||||
|
Reference in New Issue
Block a user