From 2ae0101d185f3991ceed2cec45fc16b4c37842eb Mon Sep 17 00:00:00 2001 From: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> Date: Sun, 13 Mar 2022 04:52:56 +0300 Subject: [PATCH] More detail and secure service example --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0740b75..3327e20 100644 --- a/README.md +++ b/README.md @@ -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