Created
November 18, 2020 14:41
-
-
Save usshen/83d1ac7159fe72a451524c3fa7b52442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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