|
|
Message-ID: <20021212164805.GA6555@openwall.com>
Date: Thu, 12 Dec 2002 19:48:05 +0300
From: Solar Designer <solar@...nwall.com>
To: owl-users@...ts.openwall.com
Subject: Re: /etc/init.d/functions and Red Hat compat.
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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.