Skip to content

Instantly share code, notes, and snippets.

@xavier83
Created January 9, 2016 09:45
Show Gist options
  • Save xavier83/5a536805f9b65d62cdc9 to your computer and use it in GitHub Desktop.
Save xavier83/5a536805f9b65d62cdc9 to your computer and use it in GitHub Desktop.
Afuse Systemd Unitfile
[Unit]
Description=Afuse daemon
After=network.target
[Service]
ExecStart=/usr/bin/afuse -f -o mount_template='sshfs -o ServerAliveInterval=10 -o reconnect %%r:/ %%m' -o unmount_template='fusermount -u -z %%m' %h/.mnt/ssh
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment