Clone
2
Install
adminer edited this page 2026-01-30 00:22:58 +03:00

[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