Created
September 27, 2017 19:48
-
-
Save bsquidwrd/31723cba54fca349da20009c4bfce4e2 to your computer and use it in GitHub Desktop.
My process_tasks systemd service to have it run in the background
This file contains hidden or 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=Process Background Tasks | |
After=multi-user.target | |
[Service] | |
Type=idle | |
ExecStart=/path/to/env/bin/python /path/to/project/manage.py process_tasks | |
Restart=always | |
RestartSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment