-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bernard Johnson wrote: > Stephen Warren wrote: >> Bernard Johnson wrote: >>> http://cvs.fedora.redhat.com/viewcvs/devel/tmda/tofmipd-init.patch?root=extras&rev=1.1&view=auto >> That patch looks sane to me. Just one question though: In the chkconfig >> line, the 2345 got removed, which is I assume what disabled the service >> by default. If I then do "chkconfig --on tofmipd", how does chkconfig >> know which runlevels to enable the service in. I was vaguely under the >> impression that the chkconfig line in the init file was the set of >> run-levels that the service should be enabled in if it gets enabled, and >> presumably there's a script in the RPM that gets run postinstall that is >> running "chkconfig --on tofmipd" to actually enable the service? But, >> perhaps I misunderstand how chkconfig and rpm interact... > > It's not very well documented as to "how" it knows what runlevels, but > if you man chkconfig(8) and look under "--add" (note: LSB comment) and > "RUNLEVEL FILES" (note - comment)I think it answers both your questions.
Yes, not very well documented at all! It seems that "chkconfig --add" will enable the script in whatever default run-levels are in the init script, whereas "chkconfig xxx on" will always enable the script in all of 2,3,4,5 irrespective of what's in the init file! So, the patch you gave makes sense. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF36qihk3bo0lNTrURAko3AKCIHUdnT7RDA8lzECEu3l24q7P7RQCgzJzM cOJ07Q7SJ1WmgR7lT42cUQA= =xrti -----END PGP SIGNATURE----- _________________________________________________ tmda-workers mailing list ([email protected]) http://tmda.net/lists/listinfo/tmda-workers
