Commits

Jason R. Coombs committed 763e6fa

Adding pinger conf

Comments (0)

Files changed (2)

jaraco/net/stats.py

 	@classmethod
 	def handle_command_line(cls):
 		globals().update(cherrypy=importlib.import_module('cherrypy'))
-		cherrypy.quickstart(cls())
+		config = {
+			'global': {
+				'server.socket_host': '::0',
+			}
+		}
+		cherrypy.quickstart(cls(), config=config)
 
 	def index(self):
 		return textwrap.dedent("""

pinger/pinger.conf

+[program:pinger]
+command=/usr/bin/python -m jaraco.net.icmp 68.55.72.1
+process_name=%(program_name)s
+numprocs=1
+directory=/home/pi
+umask=022
+priority=999
+autostart=true
+autorestart=true
+startsecs=10
+startretries=3
+exitcodes=0,2
+stopsignal=TERM
+stopwaitsecs=10
+user=root
+environment=PYTHONUSERBASE="/home/pi/.local"