summaryrefslogtreecommitdiff
path: root/shutdownasap.conf.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-08-20 12:44:40 +0200
committerErich Eckner <git@eckner.net>2016-08-20 12:52:07 +0200
commit37e4c66a1c4e3560685b29d52218db6090cfe1dc (patch)
tree87c6da95c8e8a6f2e35fff209b3bf019093a06da /shutdownasap.conf.in
parent09148ea48f83ee7c356d9337be2cda6e58cb8ddf (diff)
downloadshutdownasap-37e4c66a1c4e3560685b29d52218db6090cfe1dc.tar.xz
PID files auslesen
Diffstat (limited to 'shutdownasap.conf.in')
-rwxr-xr-xshutdownasap.conf.in24
1 files changed, 14 insertions, 10 deletions
diff --git a/shutdownasap.conf.in b/shutdownasap.conf.in
index 7275c1e..3795467 100755
--- a/shutdownasap.conf.in
+++ b/shutdownasap.conf.in
@@ -10,16 +10,20 @@ pidFile="/tmp/shutdownasap.pid"
waitForDir="/home/shutdown/.warteauf"
# list of processes which must not be running before shutdown
-declare -A shutDownNoGos
-
-shutDownNoGos["backup"]="[^/ ]*backup"
-shutDownNoGos["dd"]="dd"
-shutDownNoGos["ncat"]="ncat"
-shutDownNoGos["ports"]="ports"
-shutDownNoGos["prt-get"]="prt-get"
-shutDownNoGos["rsync"]="rsync"
-shutDownNoGos["wget"]="wget"
-shutDownNoGos["wetter"]="/tmp/wetter.pid"
+declare -A shutDownNoGoProcesses
+
+shutDownNoGoProcesses["backup"]="[^/ ]*backup"
+shutDownNoGoProcesses["dd"]="dd"
+shutDownNoGoProcesses["ncat"]="ncat"
+shutDownNoGoProcesses["ports"]="ports"
+shutDownNoGoProcesses["prt-get"]="prt-get"
+shutDownNoGoProcesses["rsync"]="rsync"
+shutDownNoGoProcesses["wget"]="wget"
+
+# list of PID files whose processes must not be running before shutdown
+declare -A shutDownNoGoFiles
+
+shutDownNoGoFiles["wetter"]="/tmp/wetter.pid"
# hook to execute after start of shutdownasap, before watching above conditions
beforeWatchHook() {