Created
May 10, 2022 23:07
-
-
Save PythonCoderAS/ab708af4681cee7d86d6aa3483a393b2 to your computer and use it in GitHub Desktop.
Minimal template for pipenv-powered python service #pipenv #systemd #systemd service
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=Name | |
| After=network-online.target | |
| [Service] | |
| User=username | |
| WorkingDirectory=/path/to/directory/program/is/in | |
| ExecStart=/usr/local/bin/pipenv run python main.py | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment