mirror of
https://github.com/telemt/telemt.git
synced 2026-06-19 02:00:08 +07:00
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:
+3
-1
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Telemt
|
Description=Telemt
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@@ -8,6 +9,7 @@ WorkingDirectory=/bin
|
|||||||
ExecStart=/bin/telemt /etc/telemt.toml
|
ExecStart=/bin/telemt /etc/telemt.toml
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
LimitNOFILE=65536
|
LimitNOFILE=65536
|
||||||
|
SELinuxContext=system_u:system_r:unconfined_service_t:s0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user