Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartekpacia/telegram-fhome-bot
https://github.com/bartekpacia/telegram-fhome-bot
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bartekpacia/telegram-fhome-bot
- Owner: bartekpacia
- Created: 2024-07-25T19:11:28.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-11-02T00:33:54.000Z (2 months ago)
- Last Synced: 2024-12-06T04:53:35.743Z (28 days ago)
- Language: Go
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegram-fhome-bot
```console
go build
```## systemd setup
### install
- install as user service, so [`%h` specifier can be used][link1]
- enable lingering (`loginctl enable-linger`) to avoid [death on logout][link2]```console
cp telegram-fhome-bot.service ~/.config/systemd/user
``````console
systemctl --user daemon-reload
```Now you can see that systemd sees it:
```console
systemctl --user list-unit-files --type service
``````console
systemctl --user enable telegram-fhome-bot.service
```### view logs
```console
journalctl --user --unit telegram-fhome-bot.service --follow
```[link1]: https://serverfault.com/a/997608/590260
[link2]: https://unix.stackexchange.com/q/521538/417321