14 lines
461 B
Python
14 lines
461 B
Python
|
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)
|