diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-30 17:56:19 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-30 17:56:19 -0700 |
commit | c05d5042ce2fcb5174e808e6439b624edcc28fb4 (patch) | |
tree | 30ce5402f6ef7ede73889a98ef89f01b94f64ac0 | |
parent | 9539d82e07a22550b9a6d9ecbef47be6250e5d90 (diff) |
Oops
-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 |