feat: update JuiceFS service to include Redis password and manage Redis service lifecycle

This commit is contained in:
2025-03-14 17:20:27 +01:00
parent e1c5113f87
commit 6929583710
3 changed files with 7 additions and 22 deletions

View File

@@ -5,8 +5,7 @@ Before=docker.service
[Service]
Type=simple
Environment="REDIS_PASSWORD={{ redis_password }}"
ExecStart=/usr/local/bin/juicefs mount redis://localhost:6379/0 /mnt/object_storage --cache-dir=/var/jfsCache --buffer-size=1024 --prefetch=4 --cache-size=204800 --attr-cache=3 --entry-cache=3 --open-cache=3
ExecStart=/usr/local/bin/juicefs mount redis://:{{ redis_password }}@localhost:6379/0 /mnt/object_storage --cache-dir=/var/jfsCache --buffer-size=1024 --prefetch=4 --cache-size=204800 --attr-cache=3 --entry-cache=3 --open-cache=3
Restart=on-failure
[Install]