diff --git a/gofastdfs.service b/gofastdfs.service new file mode 100644 index 0000000000000000000000000000000000000000..80e3bfd0583bbf5027f0f7c751284a59b83145b6 --- /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