Skip to content

Instantly share code, notes, and snippets.

@bitmorse
Created Mar 13, 2016
Embed
What would you like to do?
new_zim_run_for_monit
#!/bin/bash
PIDFILE=/var/run/zim_run.pid
case $1 in
start)
/usr/bin/python /home/pi/zim/mapa.py >/home/pi/log &
echo $! > ${PIDFILE};
;;
stop)
kill `cat ${PIDFILE}` ;;
*)
echo "usage: zim_run {start|stop}" ;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment