From a512b79d5847b12c09126076078d453ad23e374e Mon Sep 17 00:00:00 2001 From: sceox Date: Mon, 12 Oct 2020 14:57:52 -0700 Subject: [PATCH] add a systemd service file --- README.md | 10 +++++++++- forumspam.service | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 forumspam.service diff --git a/README.md b/README.md index 6afaebf..8872e61 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,16 @@ If using sudo, add to your sudo config file: Note: the path to `ufw` may be different depending on your linux distribution. -6. Register `q2a_usercheck.sh` as a systemd unit or rc script. +6. Register the systemd unit or rc script. + +systemd: + + sudo cp forumspam.service /etc/systemd/system/ + sudo systemctl enable forumspam + sudo systemctl start forumspam TODO: + * also check against [botscout](http://botscout.com/api.htm) * give the scripts more sensible names +* also create an rc script diff --git a/forumspam.service b/forumspam.service new file mode 100644 index 0000000..96c30ca --- /dev/null +++ b/forumspam.service @@ -0,0 +1,10 @@ +[Unit] +Description=Forumspam Block Daemon + +[Service] +User=forumspam +Group=forumspam +ExecStart=/usr/local/bin/q2a_usercheck.sh + +[Install] +WantedBy=multi-user.target