File matrix-bot@.service of Package matrix-bot
[Unit] Description=Matrix Multipurpose Bot for %i user Documentation=man:matrix-bot(1) https://github.com/unclechu/matrix-multipurpose-bot AssertPathExists=/etc/matrix-bot/%i.auth AssertPathExists=/etc/matrix-bot/%i.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/%i.auth -c /etc/matrix-bot/%i.conf -e /var/lib/matrix-bot/%i.event # Hardening PrivateDevices=yes PrivateTmp=yes ProtectHome=yes ProtectSystem=strict [Install] WantedBy=multi-user.target