[mythtv-users] slightly OT: init.d

Peter Valdemar Morch swp5jhu02 at sneakemail.com
Thu May 13 16:59:44 EDT 2004


Boleslaw Ciesielski bolek-mythtv-at-curl.com |Lists| wrote:
> Edit the numbers in /etc/rc.d/init.d/mythbackend to something like:
> 
> # chkconfig: 345 92 8
> 
> and run
> 
> chkconfig mythbackend reset
> 
> to fix the symlinks.
> 
> FWIW, Mandrake 9.2/10.0 with Thac's myth rpms have the same problem.

Yes, if you have "chkconfig" this is the thing to do. Renaming the 
/etc/init.d scripts yourself will be wasted next time you modify 
anything with chkconfig. See man chkconfig under "RUNLEVEL FILES"

At least on older SuSE distros, they do it like this e.g. for apache:
### BEGIN INIT INFO
# Provides:       apache httpd
# Required-Start: $network $named $remote_fs $syslog $netdaemons 
sendmail mysql ypclient dhcp radiusd
# Required-Stop:  $local_fs $network $named $remote_fs $syslog $netdaemons
# Default-Start:  3 5
# Default-Stop:
# Description:    Start the Apache httpd daemon
### END INIT INFO

So this means apache must start *after* sendmail, mysql, etc.

Peter

-- 
Peter Valdemar Mørch
http://www.XXXXXXXXX


More information about the mythtv-users mailing list