View previous topic :: View next topic |
Author |
Message |
Ast0r Guru
Joined: 11 Apr 2006 Posts: 404 Location: Dallas, Tx - USA
|
Posted: Sat Dec 23, 2006 4:08 pm Post subject: Start up issues since new version of baselayout (I think) |
|
|
On two of my machines, I am having various services which no longer start properly when the machine get hard power cycled.
Here is an example of what rc-status shows for the box after it got hard power cycled: Code: |
vhost ~ # rc-status
Runlevel: default
netmount [ started ]
local [ stopped ]
net.eth0 [ started ]
syslog-ng [ started ]
vixie-cron [ stopped ]
sshd [ started ]
apache [ started ]
mysql [ started ]
webmin [ stopped ]
shorewall [ stopped ]
postfix [ stopped ]
proftpd [ stopped ]
ntpd [ stopped ]
quota [ stopped ]
cvsd [ stopped ] |
and here is rc-update: Code: |
vhost ~ # rc-update show
apache | default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
cvsd | default
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
mysql | default
net.eth0 | default
net.lo | boot
netmount | default
ntpd | default
postfix | default
proftpd | default
quota | default
rmnologin | boot
shorewall | default
sshd | default
syslog-ng | default
urandom | boot
vixie-cron | default
webmin | default
|
Does anyone have any idea what is wrong here? |
|
Back to top |
|
|
abc0815 n00b
Joined: 07 Jul 2004 Posts: 54
|
Posted: Sat Dec 23, 2006 4:46 pm Post subject: |
|
|
Hi,
can you check /var/log/messages ? Since this is not enough information to get the problem.
cheers |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Dec 23, 2006 4:49 pm Post subject: |
|
|
Make sure you ran etc-update or its equivalent and there is no configuration updates pending. After thar, run revdep-rebuild.. If that fails, we need more info on what the errors are. |
|
Back to top |
|
|
Ast0r Guru
Joined: 11 Apr 2006 Posts: 404 Location: Dallas, Tx - USA
|
Posted: Sat Dec 23, 2006 4:54 pm Post subject: |
|
|
abc0815 wrote: | Hi,
can you check /var/log/messages ? Since this is not enough information to get the problem.
cheers |
The only information in /var/log/messages is that related to kernel boot, some information about sshd (which is one of the services that successfully starts) and some other information from when I manually started the services.
What I was wondering is, is there a reason that the services, which are all added to the default run-level, are not started at start-up? I am able to manually start them fine, but they don't start automatically. What should I be looking for? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Dec 23, 2006 5:00 pm Post subject: |
|
|
Ast0r wrote: | abc0815 wrote: | Hi,
can you check /var/log/messages ? Since this is not enough information to get the problem.
cheers |
The only information in /var/log/messages is that related to kernel boot, some information about sshd (which is one of the services that successfully starts) and some other information from when I manually started the services.
What I was wondering is, is there a reason that the services, which are all added to the default run-level, are not started at start-up? I am able to manually start them fine, but they don't start automatically. What should I be looking for? |
Well, maybe you are not starting in the default runlevel. Check the output of the command runlevel.
Note that if you use a custom runlevel (probably runlevel 5) to start x or something like that, you need to add all the services to that level as well. |
|
Back to top |
|
|
Ast0r Guru
Joined: 11 Apr 2006 Posts: 404 Location: Dallas, Tx - USA
|
Posted: Sat Dec 23, 2006 5:11 pm Post subject: |
|
|
6thpink wrote: | Ast0r wrote: | abc0815 wrote: | Hi,
can you check /var/log/messages ? Since this is not enough information to get the problem.
cheers |
The only information in /var/log/messages is that related to kernel boot, some information about sshd (which is one of the services that successfully starts) and some other information from when I manually started the services.
What I was wondering is, is there a reason that the services, which are all added to the default run-level, are not started at start-up? I am able to manually start them fine, but they don't start automatically. What should I be looking for? |
Well, maybe you are not starting in the default runlevel. Check the output of the command runlevel.
Note that if you use a custom runlevel (probably runlevel 5) to start x or something like that, you need to add all the services to that level as well. |
Code: | vhost ~ # runlevel
N 3 |
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Dec 23, 2006 5:14 pm Post subject: |
|
|
Ok, try this:
Code: |
# grep default /etc/inittab
id:3:initdefault:
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
# to the "default" runlevel.
|
Look at the line starting with l3, if it is not present of it is tagged as any other thing that is no the string "default", you will need to change it. |
|
Back to top |
|
|
Ast0r Guru
Joined: 11 Apr 2006 Posts: 404 Location: Dallas, Tx - USA
|
Posted: Sat Dec 23, 2006 7:14 pm Post subject: |
|
|
Mine looks the same:
Code: | vhost ~ # grep default /etc/inittab
id:3:initdefault:
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
# to the "default" runlevel. |
|
|
Back to top |
|
|
rmcknt Tux's lil' helper
Joined: 26 Dec 2002 Posts: 77 Location: Ingolstadt, Germany
|
Posted: Sat Dec 23, 2006 7:49 pm Post subject: |
|
|
Havint the same problem here with proftpd/baselayout
after upgrading, proftpd doesnt start anymore. even a "/etc/init.d/proftpd start" fails. the daemon doenst start and there is no output at all, like OK of FAILED. _________________ Real software engineers don't debug programs, they verify correctness. |
|
Back to top |
|
|
|