File matrix-bot.service of Package matrix-bot

[Unit]
Description=Matrix Multipurpose Bot
Documentation=man:matrix-bot(1) https://github.com/unclechu/matrix-multipurpose-bot
AssertPathExists=/etc/matrix-bot/auth
AssertPathExists=/etc/matrix-bot/conf
After=network.target

[Service]
User=matrix-bot
Group=matrix-bot
Type=simple
Restart=always
RestartSec=5
StateDirectory=matrix-bot
StateDirectoryMode=0710
ConfigurationDirectory=matrix-bot
ConfigurationDirectoryMode=0710
ExecStart=/usr/bin/matrix-bot start -a /etc/matrix-bot/auth -c /etc/matrix-bot/conf -e /var/lib/matrix-bot/event

# Hardening
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict

[Install]
WantedBy=multi-user.target