Fedora Linux Support Community & Resources Center
  #1  
Old 7th May 2011, 05:49 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxchrome
rc.local

I'm trying to get Crashplan to work as it is supposed to on my F14 machine. It has never started automatically on bootup as it should since I got in around F12. After everything is running I have to issue the crashplan stop command and then the crashplan start command.

Crashplan is in init.d as it should be.

I see that anything is rc.local is run last. I imagine since Crashplan needs an internet connection it has to start after all of that is running. Without changing anything I added /etc/init.d/crashplan to rc.local. It didn't work.

I then tried adding:

/usr/local/crashplan/bin/CrashPlanEngine stop
/usr/local/crashplan/bin/CrashPlanEngine start
/usr/local/bin/CrashPlanDesktop

to rc.local.

This is precisely the sequence of commands I use to get it to work. I have to run them as root.

This didn't work either.

I don't know if rc.local is run as root or not.

Does anyone have any suggestions

TIA
Reply With Quote
  #2  
Old 7th May 2011, 06:05 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 545
linuxredhatmozilla
Re: rc.local

Hello,
rc.local is run as root, at the end of the init scripts.
But beware of which rc.local your refer to !
The script is /etc/rc.d/rc.local, and /etc/rc.local is only a link toward it.
If your are using /etc/rc.local and have overwrite it as a file instead of a link, then it will not be read at all. This already happened to me in the past.
So, check this first !
__________________
:confused:
Reply With Quote
  #3  
Old 7th May 2011, 07:40 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxchrome
Re: rc.local

I was using /etc/rc.d/rc.local
Reply With Quote
  #4  
Old 7th May 2011, 08:14 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 545
linuxredhatmozilla
Re: rc.local

Ok, so does the command report some messages at the end of /var/log/boot.log ?

---------- Post added at 07:14 PM ---------- Previous post was at 06:54 PM ----------

It looks like CrashPlanDesktop is a graphical user interface. So, you cannot start it in the init script, since it requires the X server to be started.
__________________
:confused:
Reply With Quote
  #5  
Old 7th May 2011, 08:53 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxchrome
Re: rc.local

I remove the Crashplan Desktop line and the log file reads:

Stopping CrashPlan Engine ... OK
Starting CrashPlan Engine ... Using standard startup
OK

This is what I see when I run it manually.

When I then fire up the GUI to see what is happening I see that it isn't connected.

If I then go back to the terminal and do the following sequence of comands it works:

/usr/local/crashplan/bin/CrashPlanEngine stop
/usr/local/crashplan/bin/CrashPlanEngine start
/usr/local/bin/CrashPlanDesktop


????
Reply With Quote
  #6  
Old 8th May 2011, 10:12 AM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 545
linuxredhatmozilla
Re: rc.local

Hum... I do not know CrashPlan at all, so I have no idea at this point...
You said it requires an internet connection, are you sure the networt is OK ? I mean : is your connection a global connection or a user connection (which is started when you loggin) ?
__________________
:confused:
Reply With Quote
  #7  
Old 8th May 2011, 03:08 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
windows_7chrome
Re: rc.local

I think it would be a global connection as I am stll connected if I log off and then back in as root.
Reply With Quote
  #8  
Old 8th May 2011, 03:23 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 545
linuxredhatmozilla
Re: rc.local

Quote:
Originally Posted by tmort View Post
I think it would be a global connection as I am stll connected if I log off and then back in as root.
Hum... I wonder...
Just check to be sure:
1) boot your computer
2) at loggin screen, switch to tty2 (ctrl+alt+F2)
3) loggin as root and check the network ('ifconfig' for instance)
__________________
:confused:
Reply With Quote
  #9  
Old 8th May 2011, 07:38 PM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxfirefox
Re: rc.local

If I do that and do ifconfig I get:

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:25:92:0E:61
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3304 (3.2 KiB) TX bytes:3304 (3.2 KiB)

wlan0 Link encap:Ethernet HWaddr 00:21:5C:159:AD
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

and my I see my wireless connection isn't connected. When I manually connect I have to enter my key. I guess my key is not accessible automatically this way.

Not sure what this all means
Reply With Quote
  #10  
Old 9th May 2011, 09:32 AM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 545
linuxredhatmozilla
Re: rc.local

OK, so your network is not configured. Look at the output of 'ifconfig'in a terminal after you are logged to see the difference : it will show your IP address and mask.

So, if you are using NetworkManager, open your configuration and modify it : there is a checkbox at the bottom, something like 'enable for all users'. Check it and save. It will ask for the root password since the connection will be global.
Also check (if it is not already the case) the box 'connect automatically'.

Then, reboot and redo the test written in comment #8.
__________________
:confused:
Reply With Quote
  #11  
Old 10th May 2011, 12:44 AM
tmort Offline
Registered User
 
Join Date: Feb 2006
Posts: 284
linuxchrome
Re: rc.local

I checked enable for all users and it is working!

Thanks
Reply With Quote
Reply

Tags
rclocal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
halt.local / rc.local.shutdown for Fedora? flansuse Using Fedora 4 10th December 2010 10:40 AM
Sending mail to a 'local' user who is actually not local danscott Servers & Networking 0 28th February 2010 05:03 PM
How to block all local IP and allow certain local IP using IPTABLES to connect inet? laluvirtual Security and Privacy 5 29th June 2007 01:07 PM
passwd: can't get local yp domain: Local domain name not set powah Security and Privacy 0 26th May 2006 01:31 PM


Current GMT-time: 01:31 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat