Files
dotfiles/config/ansible/templates/juicefs.service.j2
Menno van Leeuwen 1bed32f76e
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 16s
Nix Format Check / check-format (push) Successful in 56s
Python Lint Check / check-python (push) Failing after 12s
feat: refactor JuiceFS service configuration to use template file
2025-03-13 23:27:41 +01:00

13 lines
384 B
Django/Jinja

[Unit]
Description=JuiceFS
After=network.target
Before=docker.service
[Service]
Type=simple
ExecStart=/usr/local/bin/juicefs mount sqlite3:///mnt/juicefs-metadata.sqlite /mnt/object_storage --cache-dir=/var/jfsCache --buffer-size=8192 --prefetch=4 --cache-size=204800 --writeback --attr-cache=1 --entry-cache=1 --open-cache=1
Restart=on-failure
[Install]
WantedBy=multi-user.target