Ciaran McCreesh wrote:
On Sat, 26 Mar 2005 17:11:28 +0100 Fabian Zeindl <[EMAIL PROTECTED]>
wrote:
| What exactly is the difference of einfo and ebegin in the
| init-scripts? Apparently it does the same...

ebegin is followed by an eend, which gives you the [ ok ] marker.

Aha... Because, I examined /etc/init.d/hdparm. It uses ebegin to display 'Starting hdparm' and the "subinformation" 'running hdparm on /dev/hda'. When I use einfo for 'running hdparm' the output doesn't change.

I've two enhancement proposals here:

## 1. When someone uses einfo to display "subinformation" for the
current tasks, it would be good if this line gets indented and displayed
without a asterisk in front:

So the current output for
ebegin "Starting hdparm..."
einfo  "Running hdparm on /dev/hda"
einfo  "Running hdparm on /dev/discs..." is

* Starting hdparm...                    [OK]
* Running hdparm on /dev/hda
* Running hdparm on /dev/discs
* ...

I think this would look better, you can replace the '-' by anything you
like...

* Starting hdparm...
 - Running hdparm on /dev/hda
 - Running hdparm on /dev/discs...
* ...


## 2. isn't there a way of preventing this ugly error messages getting into the output of the initscripts, or at least making them more beautiful?

So changing:

 * Starting local...
/sbin/runscript.sh: line 5: sdf: command not found
 * Failed to start local.           [ !! ]

Into:
 * Starting local                   [ !! ]
   !! Error: /sbin/runscript.sh: line 5: sdf: command not found
   !! ...
 * ...


greetings fabian


-- Musik ist niemals illegal: www.fairsharing.de

I prefer signed/encrypted Mail:
Fingerprint: CFE8 38A7 0BC4 3CB0 E454  FA8D 04F9 B3B6 E02D 25BA

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to