add logging

This commit is contained in:
fade 2022-08-28 12:37:43 -04:00
parent d3f2bcbdcd
commit 7e00624577
9 changed files with 91 additions and 40 deletions

View file

@ -3,6 +3,7 @@ name=$RC_SVCNAME
command="/usr/bin/$name"
command_arg1="-config /etc/$name/config.json"
command_arg2="-db /var/lib/$name/limits.db"
command_arg3="-log /var/log/$name/$name.log"
pidfile="/run/$name.pid"
user="nobody"
description="Mastodon group bot which reposts toots"

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
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
[Install]
WantedBy=multi-user.target