Skip to content

Instantly share code, notes, and snippets.

@sovietspy2
Created November 24, 2018 18:13
Show Gist options
  • Save sovietspy2/c899987ea1ec380b3642e6ce461c2be6 to your computer and use it in GitHub Desktop.
Save sovietspy2/c899987ea1ec380b3642e6ce461c2be6 to your computer and use it in GitHub Desktop.
linux systemd daemon example with autorestart
[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
@sovietspy2
Copy link
Author

This file should be in /etc/systemd/system/ in ubuntu linux (systemd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment