feat: update JuiceFS service to include Redis password and manage Redis service lifecycle
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user