github.com/ipfans/trojan-go@v0.11.0/example/trojan-go@.service (about)

     1  [Unit]
     2  Description=Trojan-Go - An unidentifiable mechanism that helps you bypass GFW
     3  Documentation=https://p4gefau1t.github.io/trojan-go/
     4  After=network.target nss-lookup.target
     5  
     6  [Service]
     7  User=nobody
     8  CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
     9  AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
    10  NoNewPrivileges=true
    11  ExecStart=/usr/bin/trojan-go -config /etc/trojan-go/%i.json
    12  Restart=on-failure
    13  RestartSec=10s
    14  LimitNOFILE=infinity
    15  
    16  [Install]
    17  WantedBy=multi-user.target