Created
October 6, 2019 18:15
-
-
Save klutchell/353d92d9cabe4794b737dabf2ed73304 to your computer and use it in GitHub Desktop.
systemd unit file for encfs fuse auto-mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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