From 6b5bf5363a0bc1c4418aadb1c0745c34eb240ffe Mon Sep 17 00:00:00 2001 From: kun Date: Mon, 3 Sep 2018 12:08:37 +0800 Subject: [PATCH] add systemd unit service --- scripts/goproxy.service | 17 +++++++++++++++++ index.html => scripts/index.html | 0 2 files changed, 17 insertions(+) create mode 100644 scripts/goproxy.service rename index.html => scripts/index.html (100%) diff --git a/scripts/goproxy.service b/scripts/goproxy.service new file mode 100644 index 0000000..6d7f75e --- /dev/null +++ b/scripts/goproxy.service @@ -0,0 +1,17 @@ +[Unit] +Description=goproxy service +Documentation=https://goproxy.io +After=network-online.target + +[Service] +User=root +Group=root +LimitNOFILE=65536 +Environment="GOPATH=/changeme/golang" +ExecStart=goproxy -listen=0.0.0.0:80 +KillMode=control-group +SuccessExitStatus=2 + +[Install] +WantedBy=multi-user.target +Alias=goproxy.service \ No newline at end of file diff --git a/index.html b/scripts/index.html similarity index 100% rename from index.html rename to scripts/index.html