Skip to content

Instantly share code, notes, and snippets.

@matabares
Created October 9, 2018 10:35
Show Gist options
  • Select an option

  • Save matabares/b180598a26d320ef09e78335f7a463bc to your computer and use it in GitHub Desktop.

Select an option

Save matabares/b180598a26d320ef09e78335f7a463bc to your computer and use it in GitHub Desktop.

Revisions

  1. matabares created this gist Oct 9, 2018.
    14 changes: 14 additions & 0 deletions MusicBot.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ***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