mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:24:01 +03:00
Merge pull request #258 from AHOHNMYC/readme-service-edit
More detail and secure service example
This commit is contained in:
@@ -317,12 +317,15 @@ Now you can create a systemd unit:
|
||||
```console
|
||||
$ cat /etc/systemd/system/mtg.service
|
||||
[Unit]
|
||||
Description=mtg
|
||||
Description=mtg - MTProto proxy server
|
||||
Documentation=https://github.com/9seconds/mtg
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/mtg run /etc/mtg.toml
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user