From: Sean Dague Subject: Re: missing log_success_msg? Date: Fri, 25 Aug 2006 15:57:14 -0400 Message-ID: <20060825195714.GS904@dargo.dague.pvt> References: <20060825185833.GR904@dargo.dague.pvt> <20060825190241.GI7563@leeni.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0205555287==" Return-path: In-Reply-To: <20060825190241.GI7563@leeni.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0205555287== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pnDjx0H/VpusRTEI" Content-Disposition: inline --pnDjx0H/VpusRTEI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 25, 2006 at 08:02:41PM +0100, Ewan Mellor wrote: > On Fri, Aug 25, 2006 at 02:58:33PM -0400, Sean Dague wrote: >=20 > > Where is log_success_msg bash function supposed to be coming from? It = is > > used in /etc/init.d/xendomains, and at least on my FC5 test system does= n't > > seem to exist anywhere. > >=20 > > root@nibbler:~> service xendomains start > > xendomains already running (lockfile exists)/etc/init.d/xendomains: lin= e 67: > > log_success_msg: command not found > >=20 > > It only seems to appear in the xendomains script: > >=20 > > root@nibbler:~/code/xen-unstable> grep -r log_success_msg * > > dist/install/etc/init.d/xendomains: log_success_msg " > > [${_SMSG[${_RC_RV}]}] " > > tools/examples/init.d/xendomains: log_success_msg " > > [${_SMSG[${_RC_RV}]}] " > >=20 > > This seems like a simple cosmetic issue that should be corrected prior = to > > 3.0.3. >=20 > Well, since the script looks like this: >=20 > if test -e /lib/lsb/init-functions; then > # LSB > . /lib/lsb/init-functions > echo_rc() > { > if test ${_RC_RV} =3D 0; then > log_success_msg " [${_SMSG[${_RC_RV}]}] " > else > log_failure_msg " [${_SMSG[${_RC_RV}]}] " > fi > } >=20 > I reckon someone expects it to be in /lib/lsb/init-functions. Any > distro code-monkeys out there? Fwiw, /lib/lsb/init-functions exists on FC5, and looks like the following: root@nibbler:~> cat /lib/lsb/init-functions=20 #!/bin/sh # LSB initscript functions, as defined in the LSB Spec 1.1.0 alias start_daemon=3D"/etc/redhat-lsb/lsb_start_daemon" alias killproc=3D"/etc/redhat-lsb/lsb_killproc" alias pidofproc=3D"/etc/redhat-lsb/lsb_pidofproc" alias log_success_msg=3D"/etc/redhat-lsb/lsb_log_message success" alias log_failure_msg=3D"/etc/redhat-lsb/lsb_log_message failure" alias log_warning_msg=3D"/etc/redhat-lsb/lsb_log_message warning" root@nibbler:~> cat /etc/redhat-lsb/lsb_log_message #!/bin/bash =2E /etc/init.d/functions ACTION=3D$1 shift case "$ACTION" in success) echo -n $* success "$*" echo ;; failure) echo -n $* failure "$*" echo ;; warning) echo -n $* warning "$*" echo ;; *) ;; esac exit 0 my bash-foo is nearly none, so any bash folks that understand why this might be not working would be appreciated. -Sean --=20 Sean Dague IBM Linux Technology Center email: japh@us.ibm.com Open Hypervisor Team alt: sldague@us.ibm.com --pnDjx0H/VpusRTEI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFE71YaSamXem9TdyYRAlpQAKCbGpAhP/+RqFm4N6dUKqP86OasWQCfe1Sa bX6sRI7Hd5AsVtv4W66kONQ= =JWtI -----END PGP SIGNATURE----- --pnDjx0H/VpusRTEI-- --===============0205555287== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0205555287==--