mirror of https://github.com/telemt/telemt.git
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:
parent
32eeb4a98c
commit
80f3661b8e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue