Modify telemt.service for network dependencies

Updated service dependencies and added SELinux context.

`network-online.target` is required to get the ip address and check telegram servers
This commit is contained in:
Denis Shulyaka 2026-03-07 17:36:44 +03:00 committed by GitHub
parent 32eeb4a98c
commit 80f3661b8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
[Unit]
Description=Telemt
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
@ -8,6 +9,7 @@ WorkingDirectory=/bin
ExecStart=/bin/telemt /etc/telemt.toml
Restart=on-failure
LimitNOFILE=65536
SELinuxContext=system_u:system_r:unconfined_service_t:s0
[Install]
WantedBy=multi-user.target