From f9b181f2822fed94f2c6472ffcb1dce7bfc31693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E5=93=A5?= <163828@qq.com> Date: Sun, 31 Mar 2019 19:29:46 +0800 Subject: [PATCH] =?UTF-8?q?!1=20centos7=E7=9A=84=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20Merge=20pull=20request=20!1=20from=20?= =?UTF-8?q?=E8=BE=89=E5=93=A5/centos7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gofastdfs.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gofastdfs.service diff --git a/gofastdfs.service b/gofastdfs.service new file mode 100644 index 0000000..80e3bfd --- /dev/null +++ b/gofastdfs.service @@ -0,0 +1,15 @@ +[Unit] +Description=gofastdfs service +Wants=network.target + +[Service] +PIDFile=/home/gofastdfs/conf/app.pid +Environment="GO_FASTDFS_DIR=/home/gofastdfs' #/home/gofastdfs 修改成你的安装路径 +ExecStart=/home/gofastdfs/fileserver $GO_FASTDFS_DIR +ExecReload=/bin/kill -s HUP $MAINPID +ExecStop=/bin/kill -s QUIT $MAINPID +PrivateTmp=true +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file -- Gitee