summarylogtreecommitdiffstats
path: root/mtg@.service
blob: 7cbb7e4733ebfcce37a781a27217c100ef4d51aa (plain)
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