add duplicate protection

This commit is contained in:
fade 2022-09-01 07:31:27 -04:00
parent 373f3721dd
commit 84bb8e3154
8 changed files with 126 additions and 52 deletions

View file

@ -2,7 +2,7 @@
name=$RC_SVCNAME
command="/usr/bin/$name"
command_arg1="-config /etc/$name/config.json"
command_arg2="-db /var/lib/$name/limits.db"
command_arg2="-db /var/lib/$name/$name.db"
command_arg3="-log /var/log/$name/$name.log"
pidfile="/run/$name.pid"
user="nobody"

View file

@ -6,7 +6,7 @@ Wants=network-online.target
[Service]
Type=simple
User=nobody
ExecStart=/usr/bin/mastodon-group-bot -config /etc/mastodon-group-bot/config.json -db /var/lib/mastodon-group-bot/limits.db -log /var/log/mastodon-group-bot/mastodon-group-bot.log
ExecStart=/usr/bin/mastodon-group-bot -config /etc/mastodon-group-bot/config.json -db /var/lib/mastodon-group-bot/mastodon-group-bot.db -log /var/log/mastodon-group-bot/mastodon-group-bot.log
[Install]
WantedBy=multi-user.target