Files
weedfs/weedmount.service

27 lines
636 B
Desktop File

[Unit]
Description=Retry weed mount until success
After=weedfil.service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/weed mount -filer=127.0.0.1:8888 -filer.path=/nomad -collection=nomad -dir=/mnt/weed_nomad -cacheCapacityMB=512 -cacheDir=/tmp -chunkSizeLimitMB=4
# -volumeServerAccess=direct
# -collection=nomad
ExecStop=+umount /mnt/weedcluster
RemainAfterExit=true
#Type=oneshot
Restart=on-failure
RestartSec=30
StartLimitInterval=0
# Дополнительные опции для обработки ошибок
SuccessExitStatus=0
TimeoutStopSec=30
#KillMode=mixed
[Install]
WantedBy=multi-user.target