Skip to content

Instantly share code, notes, and snippets.

@icook
Last active January 5, 2018 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icook/3a3544a60a2cccc5927314042cf42a14 to your computer and use it in GitHub Desktop.
Save icook/3a3544a60a2cccc5927314042cf42a14 to your computer and use it in GitHub Desktop.
todo.service
[Unit]
Description=todo server
After=network.target
[Service]
User=todo
Group=todo
WorkingDirectory=/home/todo/TodoList
ExecStart=/usr/local/bin/python app.py
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment