• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: rc.local doesn't run  (Read 1851 times)
msrk
Newbie
*

Karma: 0
Posts: 9


View Profile
« on: September 13, 2010, 02:00:52 PM »

I have a GuruPlug and added a few lines of my own to /home/root/init_setup.sh.  Everything worked fine and the plug ran for a long time.  I also turned off some services using update-rc.d that I thought I didn't need.  After a few weeks I had to reboot the plug and found that i no longer runs init_setup.sh.  Upon further investigation I found that /etc/rc.local is not running during startup either.  I can still ssh in and the system seems healthy.

How can I get /etc/rc.local to run again?

Below is what I have in the /var/log/boot file.

Thank you,
Marc


Mon Sep 13 16:33:10 2010: .
Mon Sep 13 16:33:10 2010: Setting the system clock.
Mon Sep 13 16:33:11 2010: Setting the system clock.
Mon Sep 13 16:33:12 2010: Setting kernel variables (/etc/sysctl.conf)...done.
Mon Sep 13 16:33:12 2010: Activating swap...done.
Mon Sep 13 16:33:12 2010: Cleaning up ifupdown....
Mon Sep 13 16:33:12 2010: Loading kernel modules...done.
Mon Sep 13 16:33:12 2010: Checking file systems...fsck 1.41.3 (12-Oct-2008)
Mon Sep 13 16:33:13 2010: done.
Mon Sep 13 16:33:13 2010: Setting up networking....
Mon Sep 13 16:33:13 2010: Mounting local filesystems...mount: special device /dev/sda1 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda2 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda3 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda4 does not exist
Mon Sep 13 16:33:13 2010: ^[[31mfailed.^[[39;49m
Mon Sep 13 16:33:13 2010: Activating swapfile swap...done.
Mon Sep 13 16:33:13 2010: Configuring network interfaces...done.
Mon Sep 13 16:33:14 2010: Starting portmap daemon....
Mon Sep 13 16:33:14 2010: Setting console screen modes and fonts.
Mon Sep 13 16:33:14 2010: cannot (un)set powersave mode
Mon Sep 13 16:33:14 2010: ^[[9;30]^[[14;30]Setting up ALSA...done (none loaded).
Mon Sep 13 16:33:15 2010: INIT: Entering runlevel: 2
Mon Sep 13 16:33:15 2010: Starting Network Interface Plugging Daemon: eth0.
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda1 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda2 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda3 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda4 does not exist
Mon Sep 13 16:33:15 2010: Starting enhanced syslogd: rsyslogd.
Mon Sep 13 16:33:15 2010: Starting periodic command scheduler: crond.
Mon Sep 13 16:33:15 2010: Starting system message bus: dbus.
Mon Sep 13 16:33:16 2010: Starting NTP server: ntpd.
Mon Sep 13 16:33:16 2010: Not starting internet superserver: no services enabled.
Mon Sep 13 16:33:16 2010: Starting OpenBSD Secure Shell server: sshd.
Mon Sep 13 16:33:17 2010:
Logged

msrk
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #1 on: September 14, 2010, 01:14:48 PM »

I fixed it myself with:

# update-rc.d rc.local remove
# update-rc.d rc.local defaults 98

All is well.
Logged

Pages: [1]
Print
Jump to: