Re: init.d und boot_mesg

Helmut Backhaus <[email protected]>
Newsgroups spline.eisfair.dev
Organization spline
Message-ID <[email protected]>
Hallo Marcus,

Am 24.10.21 um 20:45 schrieb Marcus Röckrath:
> Hallo Helmut,
> 
> Helmut Backhaus wrote:
> 
>> Aber ich sehe das richtig, dass diese Funktionen nur aus Init-Scripts
>> heraus funktionieren?
> 
> Wieso das denn?

Das steht irgendwo, kann aber gerade nicht mehr sagen wo. :-(

> 
> Das hier funktioniert wunderbar aus einem beliebigen Skript.
> 
> 
> #!/bin/sh
> 
> . /etc/init.d/functions
> 
> boot_mesg "Fehltext" $FAILURE
> echo_failure
> 
> boot_mesg "Succestext" $SUCCESS
> echo_ok
> 
> boot_mesg "Warntext" $WARNING
> echo_warning
> 

Boa, da hätte ich mir einen Haufen Zeit sparen können!

Danke!

Gruß,
Helmut
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.