Created
October 9, 2018 10:35
-
-
Save matabares/b180598a26d320ef09e78335f7a463bc to your computer and use it in GitHub Desktop.
Ejemplo de la unit para systemd
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
***MusicBot.service*** | |
[Unit] | |
Description=MusicBot | |
After=multi-user.target | |
[Service] | |
Type=simple | |
ExecStart=/home/pi/bot/MusicBot/run.py | |
User=pi | |
WorkingDirectory=/home/pi/bot/MusicBot | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.reddit.com/r/raspberry_pi/comments/4vhofs/creating_a_systemd_daemon_so_you_can_run_a_python/