优化gofastdfs.service

This commit is contained in:
Jrohy 2020-08-06 16:15:02 +08:00 committed by 小张
parent 08af0d309a
commit 41f004ba8b

View File

@ -4,6 +4,7 @@ Wants=network.target
[Service]
PIDFile=/home/gofastdfs/conf/app.pid
WorkingDirectory=/home/gofastdfs
Environment="GO_FASTDFS_DIR=/home/gofastdfs" #/home/gofastdfs 修改成你的安装路径
ExecStart=/home/gofastdfs/fileserver $GO_FASTDFS_DIR
ExecReload=/bin/kill -s HUP $MAINPID