Ver código fonte

Merge pull request #258 from AHOHNMYC/readme-service-edit

More detail and secure service example
tags/v2.1.6^2
Sergey Arkhipov 4 anos atrás
pai
commit
2cdd66c722
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      README.md

+ 4
- 1
README.md Ver arquivo

@@ -317,12 +317,15 @@ Now you can create a systemd unit:
317 317
 ```console
318 318
 $ cat /etc/systemd/system/mtg.service
319 319
 [Unit]
320
-Description=mtg
320
+Description=mtg - MTProto proxy server
321
+Documentation=https://github.com/9seconds/mtg
322
+After=network.target
321 323
 
322 324
 [Service]
323 325
 ExecStart=/usr/local/bin/mtg run /etc/mtg.toml
324 326
 Restart=always
325 327
 RestartSec=3
328
+DynamicUser=true
326 329
 
327 330
 [Install]
328 331
 WantedBy=multi-user.target

Carregando…
Cancelar
Salvar