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

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