[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with apcupsd and kernel 2.6



On Sat, 09 Jul 2005 01:40:09 +0200, Martin Fuzzey <mfuzzey@tele2.fr>
wrote:

> I have recently upgraded my system from kernel 2.4 to 2.6.8 (with sarge).
> 
> I have a APC Cyberfort 500 USB UPS managed with apcupsd.
> 
> Initially I had no communication at all with the UPS. Installing the 
> hotplug package fixes this _however_  apcupsd still does not start 
> correctly at boot since it is started at level S12 wheras hotplug is S40.
> 
> All works after a manual start.
> 
> Is this a bug?  (and if so in apcupsd or hotplug?)
> Should I change the start up levels so that apcupsd comes after hotplug?
> 
> Any other ideas?

I'm afraid I can't help you much. I've got Debian Sarge, kernel 2.6.8,
an APC back-ups 350 and no problems at all.

As for the hotplug package: it's installed on my system:
~# dpkg -l | grep hotplug
ii  hotplug        0.0.20040329-2 Linux Hotplug Scripts

... but I can't find it in the list of startup-scripts.
My default runlevel is 2 (line in inittab: 'id:2:initdefault:').
Looking in /etc/rcS.d:
...
lrwxrwxrwx  1 root root  17 Jul 12  2004 S40hotplug ->
../init.d/hotplug
lrwxrwxrwx  1 root root  21 Apr  4 08:06 S41hotplug-net ->
../init.d/hotplug-net
...

Looking in /etc/rc2.d:
...
lrwxrwxrwx  1 root root 17 Feb 24 23:27 S13apcupsd ->../init.d/apcupsd
...


Maybe I'm mistaken here (there's soooo much of Linux I still don't
understand), but isn't the bootsequence for a default runlevel 2:
- first run everything in numerical order in /etc/rcS.d
- then run everything in numerical order in /etc/rc2.d
... because, in that case, S40hotplug in rcS.d would be run before
S13apcupsd in rc2.d

Hope this helps,
-- 
Matthijs
vanaalten@hotmail.com

No need to 'cc' me, I read the list.



Reply to: