Python service using Upstart on Ubuntu
- by Soumya Simanta
I want to create to deploy a heartbeat service (a python script) as a service using Upstart.
My understanding is that I've to add a /etc/init/myheartbeatservice.conf with the following contents.
# my heartbeat service
description "Heartbeat monitor"
start on startup
stop on shutdown
script
exec /path/to/my/python/script.py
end…