Created
November 24, 2018 18:13
-
-
Save sovietspy2/c899987ea1ec380b3642e6ce461c2be6 to your computer and use it in GitHub Desktop.
linux systemd daemon example with autorestart
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=Git hook service | |
[Service] | |
Type=simple | |
Restart=always | |
ExecStart=/usr/bin/python3 /home/sovietspy2/www/Phaser3GamePublisher/api.py | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This file should be in /etc/systemd/system/ in ubuntu linux (systemd)