Skip to content

Instantly share code, notes, and snippets.

@4rzael
Last active May 23, 2016 19:55
Show Gist options
  • Save 4rzael/81496444e7f086ff03fc5d24a44587ed to your computer and use it in GitHub Desktop.
Save 4rzael/81496444e7f086ff03fc5d24a44587ed to your computer and use it in GitHub Desktop.

sudo mkdir /usr/lib/systemd/system/

sudo touch /usr/lib/systemd/system/babette.service

nano /usr/lib/systemd/system/babette.service

écris

[Service]
ExecStart=/home/pi/babette.py
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=babette
User=root

[Install]
WantedBy=multi-user.target

puis lance

sudo systemctl enable babette

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