Skip to content

Instantly share code, notes, and snippets.

@yspb
Last active January 16, 2020 16:17
Show Gist options
  • Save yspb/86b0386c40ec51d1e92ac4a20cf4bd35 to your computer and use it in GitHub Desktop.
Save yspb/86b0386c40ec51d1e92ac4a20cf4bd35 to your computer and use it in GitHub Desktop.
[Unit]
Description=sshfs service script
Requires=network-online.target network.target
After=network-online.service network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/sshfs -f root@node-1:/storage /storage
ExecStopPost=/bin/fusermount -u /storage
Restart=on-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment