LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-10-2008, 10:47 PM   #1
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Rep: Reputation: 15
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
 
Old 12-11-2008, 03:18 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Make sure you have the whole path to all of the commands.
 
Old 12-11-2008, 10:01 AM   #3
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
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

Last edited by gfem; 12-11-2008 at 10:02 AM.
 
Old 12-11-2008, 10:08 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 12-11-2008, 10:20 AM   #5
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
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
 
Old 12-11-2008, 10:24 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you can put the script in
/etc/network/if-up.d/
(this is for debian, perhaps for fedora the location is different)
 
Old 12-11-2008, 10:40 AM   #7
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
I did a find for the below in fedora, but it does not exist under that name.
Quote:
Originally Posted by repo View Post
you can put the script in
/etc/network/if-up.d/
(this is for debian, perhaps for fedora the location is different)
I ended up band aiding it with /bin/sleep 10. It is kind of annoying, but it works for now. I will do some more research to try to find a better way.

Thanks for the advice.

-Gregg
 
Old 01-20-2009, 04:50 PM   #8
lheldwein
LQ Newbie
 
Registered: Jan 2009
Distribution: Fedora 2.6.25-14.fc9.i686
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by gfem View Post
I did a find for the below in fedora, but it does not exist under that name.


I ended up band aiding it with /bin/sleep 10. It is kind of annoying, but it works for now. I will do some more research to try to find a better way.

Thanks for the advice.

-Gregg
Could you tell me how you band aided it with /bin/sleep 10??? I am using Fedora and having the same problem. I would like to be able to do the temporary fix you have done.

Thanks,
Laura
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
etch-mouse not woking properly methanigai Debian 1 09-12-2007 02:26 PM
Apache sever is not woking with firewall noorudin Red Hat 1 10-28-2006 06:02 AM
Problem With LINUX Woking leonidg Linux - General 4 12-07-2004 02:59 AM
Fc2 How To Make Alsa Driver Woking . vashistvishal Fedora - Installation 2 08-01-2004 07:49 AM
fedora c2; rc.local didn't run??? GrumpyGnome Linux - Newbie 2 07-03-2004 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration