On 25/11/2007, C.J. Adams-Collier <[EMAIL PROTECTED]> wrote: > is there something like a service-common package that provides a helper > script like the following for services to source? > > I'm thinking that it would belong somewhere like > /usr/share/service-common/init.sh. I have not tested the > following yet, and I'm a sucky bash programmer. >
Ever heard about lsb-base and /lib/lsb/init-functions? :) That's exactly what you are looking for. dh_make provides an example init.d script using the LSB init functions (but it isn't very compliant as it is now[1]) [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450898 Regards, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Say NO to Microsoft Office broken standard. See http://www.noooxml.org/petition -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]