aboutsummaryrefslogtreecommitdiff
path: root/monitor_daemon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_daemon.sh')
-rwxr-xr-xmonitor_daemon.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor_daemon.sh b/monitor_daemon.sh
index fed2967..7d976ee 100755
--- a/monitor_daemon.sh
+++ b/monitor_daemon.sh
@@ -4,18 +4,18 @@
# echo "you must specify the triggered command"
# exit 1
#fi
+CLIENT="python lab_monitor_client.py"
function on_exit {
- python client.py --drop "$JID"
+ $CLIENT --drop "$JID"
exit 0
}
-JID=$(python client.py --create "$JMNAME" --type "$JTYPE")
+JID=$($CLIENT --create "$JMNAME" --type "$JTYPE")
if [[ "$JID" == "" ]]; then
echo "failed to create monitor"
exit 1
fi
trap on_exit SIGINT SIGTERM
-CLIENT="python client.py"
while [ 1 ]; do
trigger
sleep 1