diff options
-rwxr-xr-x | fill | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,6 +5,7 @@ # as published by Sam Hocevar. See the COPYING file for more details. declare -r workdir=/var/lib/pristine-etc +declare -r bindir=/etc/etckeeper/pristine lock() { local fd=$1 @@ -23,7 +24,7 @@ drain() { systemctl reset-failed pristine-etc-keeper.service &>/dev/null || true systemctl start pristine-etc-keeper.service else - /etc/etckeeper/pristine/drain & + nohup "${bindir}/drain" <&- &> /dev/null & fi } @@ -32,7 +33,7 @@ main() { umask 0022 if [[ $# -gt 0 ]]; then - lock 8 "${workdir}/spool.spool" + lock 8 "${workdir}/spool.lock" printf '%s\n' "$*" >> "${workdir}/spool" unlock 8 fi |