Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2005 14:23:25 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Fafa Diliha Romanova <fteg@london.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /usr/local/etc/rc.d scripts: echo on startup
Message-ID:  <20050310122325.GA49054@orion.daedalusnetworks.priv>
In-Reply-To: <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com>
References:  <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-10 06:45, Fafa Diliha Romanova <fteg@london.com> wrote:
> hello.
>
> i'm just wondering how to deal with the way the rc.d scripts echo on startup.
> like, some of the rc.d scripts contain the echo " daemon", while some echo "daemon",
> so on startup whereas it should look like:
>
> daemon daemon deamon
>
> it may look like:
>
> daemondaemon daemon 1.2 Loaded successfully!daemon
>
> is there a uniform way to identify echos and make them display properly?
> thanks!

I usually edit the offending scripts in /usr/local/etc/rc.d:

	# cd /usr/local/etc/rc.d
	# vi *

and make them all use a uniform notification:

	echo -n " foo"

This does require a bit of shell scripting foo, but it shouldn't be
that hard.  If it proves more difficult than you expected, feel free
to post the script here or personally to me and ask for help.

- Giorgos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050310122325.GA49054>