From 5b94c3f633aa974d14da5ef68d909f66c9d7dbe8 Mon Sep 17 00:00:00 2001 From: Sebastian Gehaxelt Date: Sun, 3 Feb 2019 22:17:18 +0100 Subject: [PATCH] Added systemd service file --- README.md | 2 ++ rss2irc.service | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 rss2irc.service 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