summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-29 16:23:51 +0200
committerErich Eckner <git@eckner.net>2017-07-29 16:23:51 +0200
commit352dd1c0b56a223271aef33c9a90873d4416ba51 (patch)
tree00ec5d87e6938a594f02e30720709edfd8521182
parentef197a8587b7c6303f5c53f8ab8ab7f51ba6cfe5 (diff)
downloadshutdownasap-352dd1c0b56a223271aef33c9a90873d4416ba51.tar.xz
shutdownasap: "set -e" new
-rwxr-xr-xshutdownasap.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index aef43c4..6184367 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -2,6 +2,8 @@
# shutdownasap version #VERSION#
+set -e
+
. #ETCDIR#/shutdownasap.conf
[ -r "${pidFile}" ] && ps aux | grep -q "^\S\+\s\+$(cat "${pidFile}") " && exit