3 # Copyright (c) 2016-2020 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
4 # published under MIT-License
8 # sudo touch /var/lib/systemd/linger/$USER
9 # mkdir -p ~/.config/systemd/user/
10 # cp somebot.service ~/.config/systemd/user/
11 # export XDG_RUNTIME_DIR=/run/user/$UID
12 # systemctl --user daemon-reload
13 # systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer somebot.service
14 # systemctl --user start systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer somebot.service
17 Description=Someone's Mattermost bot
21 WorkingDirectory=/%h/mattermost/somebot/
22 ExecStart=/usr/bin/python3 main.py
27 WantedBy=default.target