!1 centos7的启动脚本

Merge pull request !1 from 辉哥/centos7
This commit is contained in:
辉哥 2019-03-31 19:29:46 +08:00 committed by sjqzhang
parent 9bedb17f94
commit 78bfbd1618

15
gofastdfs.service Normal file
View File

@ -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