go build
- install as user service, so
%h
specifier can be used - enable lingering (
loginctl enable-linger
) to avoid death on logout
cp telegram-fhome-bot.service ~/.config/systemd/user
systemctl --user daemon-reload
Now you can see that systemd sees it:
systemctl --user list-unit-files --type service
systemctl --user enable telegram-fhome-bot.service
journalctl --user --unit telegram-fhome-bot.service --follow