Skip to content

Instantly share code, notes, and snippets.

@klutchell
Created October 6, 2019 18:15
Show Gist options
  • Save klutchell/353d92d9cabe4794b737dabf2ed73304 to your computer and use it in GitHub Desktop.
Save klutchell/353d92d9cabe4794b737dabf2ed73304 to your computer and use it in GitHub Desktop.
systemd unit file for encfs fuse auto-mount
Description=Encfs FUSE mount
Documentation=https://vgough.github.io/encfs/
Wants=s3fs.service
After=s3fs.service
AssertPathIsDirectory=/mnt/encfs
[Service]
Type=simple
Environment=ENCFS6_CONFIG=%h/.encfs6.xml
ExecStartPre=/bin/mountpoint /mnt/s3fs
ExecStart=/usr/bin/encfs -f --extpass="cat %h/.extpass" /mnt/s3fs/encfs /mnt/encfs -o use_cache=/tmp -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000
ExecStop=/bin/fusermount -u /mnt/encfs
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment