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