summarylogtreecommitdiffstats
path: root/trojan-r@.service
blob: 698e66d369afb4ddcdea5ba26a56e2de389b97c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Trojan-R
Documentation=https://github.com/p4gefau1t/trojan-r
After=network.target network-online.target nss-lookup.target

[Service]
Type=simple
StandardError=journal
User=nobody
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/trojan-r --config /etc/trojan-r/%i.toml
Restart=on-failure
RestartSec=10s

[Install]
WantedBy=multi-user.target