blob: cb8e603120f31fed6c68f815eab12b8d8d3115d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}
|