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. I just checked it again to make sure on my system, and it works as expected. If you want to see what scripts are actually run, take a look at: http://cvs.fedora.redhat.com/viewcvs/devel/tmda/tmda.spec?root=extras&rev=1.3&view=auto (search for %post) After looking at that, if you still think it may have problems, please let me know as I want to make sure it's absolutely correct. _________________________________________________ tmda-workers mailing list ([email protected]) http://tmda.net/lists/listinfo/tmda-workers
