Re: /etc/init.d/functions and Red Hat compat.

From: Solar Designer (solar@private)
Date: Thu Dec 12 2002 - 08:48:05 PST


On Mon, Dec 09, 2002 at 10:21:09AM +0200, Jarno Huuskonen wrote:
> I noticed a very minor compatibility issue with /etc/init.d/functions
> and Red Hat initscripts. Some Red Hat package initscripts
> (eg. squid errata package) use echo_success / echo_failure when
> starting/stopping daemons (AFAIK these just print the green OK/red
> FAILURE).
> 
> Owl functions doesn't have these two functions, so the
> initscript complains about missing function.

I thought these were internal to their "functions" file, they're used
by success() and failure().  I've added them and some more now.

> Something like this should be sufficient:
> echo_success() {
> 	echo "success"
> }
> 
> echo_failure() {
> 	echo "failure"
> }

I decided to ensure the return codes are the same as on RHL, but
otherwise made these dummy functions (no echoing).

Thanks for noticing this!

-- 
/sd



This archive was generated by hypermail 2.1.3 : Sun Jan 15 2006 - 13:43:17 PST