Last active
January 5, 2018 22:30
-
-
Save icook/3a3544a60a2cccc5927314042cf42a14 to your computer and use it in GitHub Desktop.
todo.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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