summaryrefslogtreecommitdiff
path: root/shutdownasap.conf.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-04 11:14:03 +0200
committerErich Eckner <git@eckner.net>2016-05-04 13:08:24 +0200
commitb0eb23c0930611889ed615bc2f431e30b35bbbbe (patch)
treebd469e9cc9797180b1eb9f14e3325cbfd6124617 /shutdownasap.conf.in
parent7a3b06c77c3d515c613a1fc1e8ee95fe76428c59 (diff)
downloadshutdownasap-0.2.tar.xz
Makefile, manpage neu, Versionsupdatev0.2
Diffstat (limited to 'shutdownasap.conf.in')
-rwxr-xr-xshutdownasap.conf.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/shutdownasap.conf.in b/shutdownasap.conf.in
new file mode 100755
index 0000000..cb8e603
--- /dev/null
+++ b/shutdownasap.conf.in
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# configuration file for shutdownasap version #VERSION#
+# it should be named #ETCDIR#/shutdownasap.conf
+
+# shutdownasap's pid
+pidFile="/tmp/shutdownasap.pid"
+
+# directory must be empty before shutdown
+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"
+
+# hook to execute after start of shutdownasap, before watching above conditions
+beforeWatchHook() {
+ true
+}
+
+# hook to execute before shutting down
+beforeShutDownHook() {
+ true
+}