Skip to content

Instantly share code, notes, and snippets.

@usshen
Created November 18, 2020 14:41
Show Gist options
  • Save usshen/83d1ac7159fe72a451524c3fa7b52442 to your computer and use it in GitHub Desktop.
Save usshen/83d1ac7159fe72a451524c3fa7b52442 to your computer and use it in GitHub Desktop.
[Unit]
Description=trojan
Documentation=man:trojan(1) https://trojan-gfw.github.io/trojan/config https://trojan-gfw.github.io/trojan/
After=network.target network-online.target nss-lookup.target mysql.service mariadb.service mysqld.service
[Service]
Type=simple
StandardError=journal
User=root
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/trojan /etc/trojan/config.json
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=3s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment