[Mageia-dev] LSB init scripts question.

Colin Guthrie mageia at colin.guthr.ie
Wed Apr 18 10:05:15 CEST 2012


'Twas brillig, and David W. Hodgins at 18/04/12 05:01 did gyre and gimble:
> 
> On my Mageia 1 system, I noticed that xinetd wasn't getting
> started.  After comparing the lsb headers, I modified the
> script as per the following patch, and confirmed that on
> reboot, it's now getting started.
> 
> $ cat xinetd.patch
> --- /etc/init.d/xinetd.original 2011-01-11 23:35:28.000000000 -0500
> +++ /etc/init.d/xinetd  2012-04-17 23:38:19.507878097 -0400
> @@ -7,7 +7,7 @@
>  # Provides: xinetd
>  # Required-Start: $network $syslog
>  # Required-Stop: $network $syslog
> -# Default-Start: 345
> +# Default-Start: 3 4 5
>  # Short-Description: A powerful replacement for inetd
>  # Description: This startup script launches xinetd daemon
>  ### END INIT INFO

Is that the only change you did? You didn't run a chkconfig command too
or similar?

I'm not an expert on the previous sysvinit but I thought that provided
the links existed in /etc/rcN.d/S??xinetd then it should get started.
prcsys might do things somewhat differently here tho', I don't know.

> I was going to file a bug report, but decided to check other
> files.  I found that udev-post and crond also are missing the
> spaces.

udev stuff is somewhat handled in rc.sysinit so likely not a big problem
if it doesn't run...

> udev-post does not get run at boot, as confirmed by
> /var/lock/subsys/udev-post not existing, however crond is
> getting started.
> 
> This doesn't make sense to me.  If the spaces are required,
> how is crond still getting started, while xinetd and udev-post
> are not?


I suspect there is still something missing, can you check the symlinks
for udev-post in the /etc/rcN.d folders. If they exist (i.e. there is a
/etc/rc3.d/S??udev-post file) then does only changing the numbers and
rebooting make it run at next boot.

I suspect there is a little more to this story still :)

Col

-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list