LSB, chkconfig and the frustration of multiple distro support

Posted on Wed 06 June 2007 in misc

I've had a frustrating time with getting some of our init scripts working on both RHEL4 and SLES10. The issues have mostly been to RHEL4's less than stellar LSB implementation. Despite having a compatibility header for chkconfig it still sees the LSB stuff and promptly fails to resolve any of the dependencies. As we are a 3rd party application we can't exactly tell our customers to install a newer version of chkconfig which works (which the Fedora Core 6 one does). It's also a logistic PITA if we start generating separate RPMs for both distros. In the end I took advantage of having the source code for chkconfig and sprinkling fprintf statements in it until I figured out what it was doing. I managed to craft an appropriate header that works properly on SLES and works (by virtue of understanding the bug in chkconfig) on RHEL. I far prefer actual application coding.....