mirror of
https://gitee.com/sjqzhang/go-fastdfs.git
synced 2024-11-29 17:57:41 +08:00
parent
9bedb17f94
commit
78bfbd1618
15
gofastdfs.service
Normal file
15
gofastdfs.service
Normal 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
|
Loading…
Reference in New Issue
Block a user