Skip to content

Commit

Permalink
Merge pull request thuantran#377 from thuantran/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jumpsmm7 authored May 14, 2022
2 parents f5db4ad + dae3408 commit 2298d2a
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 179 deletions.
3 changes: 1 addition & 2 deletions gen/manager
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ dnscrypt_proxy_run () {
printf "%s\n" "$$" > $pid_file
trap 'rm -rf "$lock_dir"; exit $?' EXIT
start="$(date +%s)"
$@
$1
end="$(date +%s)"
runtime="$((end-start))"
logger -st "$NAME" "$@ took $runtime second(s) to complete."
rm -rf "$lock_dir"
trap - EXIT
else
logger -st "$NAME" "Lock owned by $(cat $pid_file) exists; preventing duplicate runs!"
fi
Expand Down
2 changes: 1 addition & 1 deletion gen/manager.md5sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
73722a97281aa4fd1ef011139df3f819
3a746af607d70cff22f2f82083911b08
Loading

0 comments on commit 2298d2a

Please sign in to comment.