@@ -1,22 +0,0 @@
1−# Monit is configured via /etc/monit/monitrc and /etc/monit/conf-enabled/*
2−#
3−# Setup:
4−#
5−# Replace USER in all the monit/* files
6−# Move start.sh and stop.sh out of monit/
7−# Copy this file to /etc/monit/conf-enabled/worker
8−#
9−# Useful commands:
10−#
11−# monit status # see currently running things
12−# monit restart elm-worker # restart the Haskell server
13−#
14−# monit # start monit
15−# monit quit # quit monit
16−#
17−
18−
19−check process elm-worker with pidfile /home/USER/compiler/worker/worker.pid
20− start program = "/home/USER/compiler/worker/start.sh" with timeout 60 seconds
21− stop program = "/home/USER/compiler/worker/stop.sh"
22− if failed host localhost port 8000 protocol http and request "/" then restart