Добавить weedmount.service
This commit is contained in:
26
weedmount.service
Normal file
26
weedmount.service
Normal file
@@ -0,0 +1,26 @@
|
||||
[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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user