mirror of
https://github.com/telemt/telemt.git
synced 2026-05-23 04:01:44 +03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user