Добавить Install

2026-01-30 00:22:06 +03:00
commit fb6d7d9807

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