summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-30 17:56:19 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-30 17:56:19 -0700
commitc05d5042ce2fcb5174e808e6439b624edcc28fb4 (patch)
tree30ce5402f6ef7ede73889a98ef89f01b94f64ac0
parent9539d82e07a22550b9a6d9ecbef47be6250e5d90 (diff)
Oops
-rwxr-xr-xfill5
1 files changed, 3 insertions, 2 deletions
diff --git a/fill b/fill
index f12ae2a..a4704e1 100755
--- a/fill
+++ b/fill
@@ -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