Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Start up issues since new version of baselayout (I think)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Sat Dec 23, 2006 4:08 pm    Post subject: Start up issues since new version of baselayout (I think) Reply with quote

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
View user's profile Send private message
abc0815
n00b
n00b


Joined: 07 Jul 2004
Posts: 54

PostPosted: Sat Dec 23, 2006 4:46 pm    Post subject: Reply with quote

Hi,
can you check /var/log/messages ? Since this is not enough information to get the problem.
cheers
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Dec 23, 2006 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Sat Dec 23, 2006 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Dec 23, 2006 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Sat Dec 23, 2006 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Dec 23, 2006 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Sat Dec 23, 2006 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
rmcknt
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 77
Location: Ingolstadt, Germany

PostPosted: Sat Dec 23, 2006 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum