1
0
Fork 0
trespassed/software/main.py

14 lines
461 B
Python
Raw Normal View History

2016-12-21 12:44:40 -05:00
from twisted.application.service import Service, Application
from twisted.internet import reactor
from trespassed.serial import SerialService, watchdog_service
from trespassed.email import email_routine
reactor.callLater(5, email_routine, "Trespassed Service Restarted",
"")
application = Application("Trespassed")
serial_service = SerialService()
watchdog_service.setServiceParent(application)
serial_service.setServiceParent(application)