From 786e6206d2fc058171e98cf68261546d402e7eef Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Mon, 8 Jun 2020 14:11:07 +0800 Subject: [PATCH 1/2] Rename makefile to Makefile --- docs/{makefile => Makefile} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename docs/{makefile => Makefile} (90%) diff --git a/docs/makefile b/docs/Makefile similarity index 90% rename from docs/makefile rename to docs/Makefile index b76d3d969..ac19e3022 100644 --- a/docs/makefile +++ b/docs/Makefile @@ -17,4 +17,4 @@ hugo-themes: rm -rf themes mkdir themes git clone --depth=1 https://github.com/llc1123/hugo-theme-techdoc.git themes/hugo-theme-techdoc - rm -rf themes/hugo-theme-techdoc/.git \ No newline at end of file + rm -rf themes/hugo-theme-techdoc/.git From 578dbce7eb86d7dfb0c34c7eb93f5a48328517d6 Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Mon, 8 Jun 2020 16:37:37 +0800 Subject: [PATCH 2/2] Create trojan-go@.service --- example/trojan-go@.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 example/trojan-go@.service diff --git a/example/trojan-go@.service b/example/trojan-go@.service new file mode 100644 index 000000000..5d58f4f5b --- /dev/null +++ b/example/trojan-go@.service @@ -0,0 +1,17 @@ +[Unit] +Description=trojan-go +Documentation=https://p4gefau1t.github.io/trojan-go/ +After=network.target network-online.target nss-lookup.target mysql.service mariadb.service mysqld.service + +[Service] +Type=simple +StandardError=journal +User=nobody +AmbientCapabilities=CAP_NET_BIND_SERVICE +ExecStart=/usr/lib/trojan-go/trojan-go /etc/trojan-go/%i.json +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +RestartSec=1s + +[Install] +WantedBy=multi-user.target