1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 11:37:02 +00:00
2017-07-23 08:55:02 +02:00

21 lines
303 B
Tcl
Executable File

#!/bin/tclsh
source [file join [file dirname [info script]] common.tcl]
proc main { } {
if { [is_running] } then {
set pid [read_pid_file]
catch { exec kill -KILL $pid }
remove_pid_file
}
log "stopped"
}
if { [catch { main } errorMessage] } then {
log $errorMessage
exit 1
}