Autodetect nice path

dev
hk 2017-09-16 14:03:35 +02:00
parent 53f91f0f9e
commit 57049acab3
2 changed files with 1 additions and 2 deletions

View File

@ -207,7 +207,7 @@ LOCKDIR="/run/lock/borgwrapper"
STATUSDIR="/var/lib/borgwrapper/status"
BWLIMIT=0
USE_NICE=true
NICE="/usr/bin/nice"
NICE="$(command -v nice)"
while getopts ":c:dV" OPT; do
case ${OPT} in

View File

@ -29,7 +29,6 @@ KEEP_YEARLY=5
# Use nice to reduce system performance impact from backups. Set to false to disable.
#USE_NICE=true
#NICE="/usr/bin/nice"
# Location of borgwrapper lock files
#LOCKDIR="/run/lock/borgwrapper"