go-fastdfs/gofastdfs.service

16 lines
441 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=gofastdfs service
Wants=network.target
[Service]
PIDFile=/home/gofastdfs/conf/app.pid
2020-08-06 16:15:02 +08:00
WorkingDirectory=/home/gofastdfs
2019-04-01 11:16:11 +08:00
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