From owner-freebsd-questions@FreeBSD.ORG Thu Mar 10 12:23:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51DB916A4CE for ; Thu, 10 Mar 2005 12:23:31 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8702943D58 for ; Thu, 10 Mar 2005 12:23:27 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j2ACNDEQ017611; Thu, 10 Mar 2005 14:23:13 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j2ACNPOr049102; Thu, 10 Mar 2005 14:23:25 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j2ACNPEK049101; Thu, 10 Mar 2005 14:23:25 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 10 Mar 2005 14:23:25 +0200 From: Giorgos Keramidas To: Fafa Diliha Romanova Message-ID: <20050310122325.GA49054@orion.daedalusnetworks.priv> References: <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com> cc: freebsd-questions@freebsd.org Subject: Re: /usr/local/etc/rc.d scripts: echo on startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 12:23:31 -0000 On 2005-03-10 06:45, Fafa Diliha Romanova 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