Добавить Install
25
Install.md
Normal file
25
Install.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=SeaweedFS Master Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
ExecStart=/usr/local/bin/weed master -options=/etc/seaweedfs/master.conf
|
||||||
|
WorkingDirectory=/usr/local/bin
|
||||||
|
SyslogIdentifier=weedfs-master
|
||||||
|
|
||||||
|
#Restart=always
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=60
|
||||||
|
StartLimitInterval=0
|
||||||
|
|
||||||
|
|
||||||
|
ExecStartPost=/usr/local/bin/consul-register register weedmst 9333 prd master seaweedfs
|
||||||
|
ExecStop=/usr/local/bin/consul-register deregister weedmst
|
||||||
|
ExecStopPost=/usr/bin/sleep 1.2
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user