sshfs mount won't start from /etc/rc.local

Posted by Alex Flo on Server Fault See other posts from Server Fault or by Alex Flo
Published on 2012-09-28T08:51:36Z Indexed on 2012/09/28 9:39 UTC
Read the original article Hit count: 350

Filed under:
|
|

I have the following commands in /etc/rc.local

chmod 666 /dev/fuse  
chmod +x /usr/bin/fusermount  
/bin/su someuser -c "/usr/bin/sshfs someuser@someserver:/usr/local/storage /usr/local/storage_remote -o nonempty -o reconnect"  

If I run them from command line, as root, they work.
If I reboot the server they won't run from /etc/rc.local.
I try to figure out what I do wrong but I don't have console access and I couldn't find any errors in /var/log related to sshfs.

© Server Fault or respective owner

Related posts about debian

Related posts about sshfs