1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[Unit] Description=mtg - MTProto proxy server Documentation=https://github.com/9seconds/mtg After=network.target [Service] ExecStart=/usr/bin/mtg run /etc/mtg/%i.toml Restart=always RestartSec=3 DynamicUser=true AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target