diff --git a/README.md b/README.md index 7bf7658..cb4f5a6 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ To start the bot, run: python2 main.py ``` +If you want to run this as a systemd service, you can use the `rss2irc.service` file after adjusting the paths in there. + # Adding feeds To add a new feed, edit the `feeds.sql` and import it to your sqlite database: diff --git a/rss2irc.service b/rss2irc.service new file mode 100644 index 0000000..78f4f54 --- /dev/null +++ b/rss2irc.service @@ -0,0 +1,10 @@ +[Unit] +Description=Rss2Irc Bot + +[Service] +KillMode=process +User=rss2irc #Change to your username +ExecStart=/PATH-TO-THE-REPO/venv/bin/python /PATH-TO-THE-REPO/main.py #Replace PATH-TO-THE-REPO with the absolute path to the repository. + +[Install] +WantedBy=multi-user.target \ No newline at end of file