![]() ![]() Start program = “/etc/init.d/piaware start” sbin/start-stop-daemon -stop -quiet -oknodo -pidfile $PIDFILE Log_daemon_msg “Stopping piaware server” “piaware” Log_daemon_msg “Starting piaware server” “piaware” –quiet /sbin/start-stop-daemon -start -oknodo -background -pidfile $PIDFILE -exec $DAEMON -p $PIDFILE #!/bin/bash BEGIN INIT INFO Provides: piaware Required-Start: $network $remote_fs $syslog $time Required-Stop: $network $remote_fs $syslog Default-Start: 2 3 4 5 Default-Stop: 0 1 6 Short-Description: Communicate ADS-B data to FlightAware Description: piaware is a way to connect a homebrew Raspberry Pi-based ADS-B receiver running dump1090 over a TLS connection to forward ADS-B data to FlightAware END INIT INFO I modified the file and placed the new code near the end not knowing where exactly it should go as shown /etc/init.d $ cat piaware.work I modified the fadumo1090.sh and piaware files and when I check status it says that the faup1090 is not running and the piaware is not running, see ~ $ sudo piaware-statusĭump1090 is listening for connections on port 30005.ĭump1090 is listening for connections on port 10001.ĭump1090 is producing data on port 10001.ĭump1090 is producing data on port 30005. You’ll find documentation under Web Service on /community/ … gure-monit. If you want to be able to monitor monit remotely you’ll need to update the listen config in /etc/monit/monitrc. If failed host localhost port 199 type tcp then restart If failed host localhost port 8080 with protocol http and request "/" with timeout 5 seconds for 4 times within 5 cycles then restart Stop program = "/etc/init.d/fadump1090.sh stop" Start program = "/etc/init.d/fadump1090.sh start" If timestamp > 10 minutes then exec "/etc/init.d/piaware restart"Ĭheck process dump1090 with pidfile /var/run/dump1090 Stop program = "/etc/init.d/piaware stop"Ĭheck file piaware.out with path /tmp/piaware.out ![]() Start program = "/etc/init.d/piaware start" Place the following in /etc/monit/conf.d/piaware after you install the monit package::Ĭheck process piaware with pidfile /var/run/piaware.pid Add the option -make-pidfile before the -pidfile option in the line that starts with “/sbin/start-stop-daemon -start” in /etc/init.d/fadump1090.sh. You need to make one change to the dump1090 start script, as is it won’t create the pid file that monit needs in order to monitor the process. ![]() I did some work with monit and have the basics working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |