[Discuss] how to modify the daemon number ?
Scott Petersen
scott at slal.net
Wed Nov 7 22:08:13 PST 2007
xxx xxx wrote:
> On Nov 6, 2007 8:44 PM, Drew <drew.kay at gmail.com> wrote:
>> > I have a SuSe linux server at office. Now I like to run some daemon
>> > before other. For an example I like to start mysql server before
>> > backup-mysql. In debian it is easy to change service number with
>> > update-rc but in Suse how can I do it ? Say there is a daemon at
>> > runlevel 3 as S19mysql and I like to change it as S17mysql.
>>
>> Go into the relevant /etc/rcX.d folder (rc3.d in this case) and execute:
>>
>> mv ./S19mysql ./S17mysql
>>
>> That should allow you to change the boot order.
>
> Hi Drew,
>
> Thanks for your response. I did this before. But when ever I run
> chkconfig to start/stop that sevice; for an example "chkconfig mysql
> on" ; the system restores the prior service number; here S17 to S19
> again. I have done the "mv..." thing a no. of times and every time
> chkconfig restored the number. Is there any specific command or
> anything special in SuSe which can allow me to change the service
> number permanently ?
>
The information that chkconfig uses (at least on Mandriva) is in the
main rc script in /etc/init.d. The S**name and K**name in the
/etc/rcX.d directories are usually links to the files in /etc/init.d
There are a couple of versions of the chkconfig information but it will
likely be a comment in the heading of the file and look something like this:
# chkconfig: 2345 55 25
This means that chkconfig will make the links in runlevels 2,3,4 and 5
and create an S55name and a K25name in the appropriate directories.
In your case you would want to change the 19 to a 17
Cheers
Scott Petersen
More information about the Discuss
mailing list