Rc.local not woking in Fedora 10
I have modified my rc.local to mount some samba shares, but it does not seem to be running at boot. The same script works great in Centos5. There are no errors in /var/log/messages. If I run the script manually as root it works fine ./rc.local. Can someone tell me how to troubleshoot this problem.
Thanks. -Gregg |
Make sure you have the whole path to all of the commands.
|
I have the complete path in rc.local as follows.....
/bin/mount -t cifs //xxx.xxx.xxx.xxx/entertain/ /entertain -o rw,username=xxxx,password=xxx /bin/mount -t cifs //xxx.xxx.xxx.xxx/disk/ /disk -o rw,username=xxx,password=xxx is there a log file somewhere to tell if it is being executed?? Maybe I should mention it is x_64 kernel dunno if it makes a difference. -Gregg |
perhaps the connection is not up, at the moment rc.local is executed?
you can add ping xxx.xxx.xxx.xxx > test.txt to verify |
You are right. I think it is not up I found this in dmesg
CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 How do I check if the network connection is up within rc.local and tell it to wait for it to come up before executing the commands?? -Gregg |
you can put the script in
/etc/network/if-up.d/ (this is for debian, perhaps for fedora the location is different) |
I did a find for the below in fedora, but it does not exist under that name.
Quote:
Thanks for the advice. -Gregg |
Quote:
Thanks, Laura |
All times are GMT -5. The time now is 09:25 PM. |