/usr/local/etc/rc.d scripts: echo on startup

Mike Hauber m.hauber at mchsi.com
Thu Mar 10 04:31:26 PST 2005

On Thursday 10 March 2005 06:45 am, 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!
> all the best,
> fafa

You could edit rc.d remove the spaces and replace them with "." so 
it would make it look like:

You could also edit the echo strings so that the spaces are at the 
beginning/end for all of them...  Either way, the output would 
essentially be the same:
daemon deamon daemon 
 daemon deamon daemon

man echo?


More information about the freebsd-questions mailing list