Re: Booting Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kaushal Shriyan wrote:

On 7/10/06, Serge Bromow <serge@xxxxxxxxxxx> wrote:


Kaushal Shriyan wrote:
Hi

I have a query here while booting linux we find on the screen someting like

Starting sendmail
.....................................[OK]

Instead I want

Starting sendmail
.....................................[Success]

so how do i do it and which file I need to edit

Thanks and Regards

Kaushal

Look at the file, "/etc/init.d/functions".
Find the "OK" string in the function 'echo_success()' and  change it to
whatever you like. If you would like the word "Success" to appear only for "sendmail" then I suspect you could include this function in the "sendmail" script located in "/etc/rc.d/init.d" after the include of the "functions"
library.


--
Serge Bromow

Omen Systems Int'l
<serge@xxxxxxxxxx>
888 411-OMEN

(6636)

Ottawa, Canada.

IMPORTANT NOTICE: This message is intended only for

the use of the individual or entity to which it is addressed. The message
may contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify Omen Systems
immediately by email at postmaster@xxxxxxxxxxx


Thank you.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-list


Hi Serge

Could see the functions file, If i replace OK with Success it works
for all the services, But I want a specific service viz Sendmail, so
how do i do it

Thanks and Regards

Kaushal

I have not tried this but give it a go.

Edit the file "/etc/rc.d/init.d/sendmail"
Here is a clip of the top of that file;

---------------------------------------------
#!/bin/bash
#
# sendmail      This shell script takes care of starting and stopping
#               sendmail.
#
# chkconfig: 2345 80 30
# description: Sendmail is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: sendmail
# config: /etc/mail/sendmail.cf
# pidfile: /var/run/sendmail.pid

# Source function library.
. /etc/rc.d/init.d/functions

##### Insert here the replacement for 'echo_success()' function. This should replace the one buillt into the above 'functions' include.

echo_success() {
 [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
 echo -n "["
 [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
 echo -n $"  Success  "
 [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
 echo -n "]"
 echo -ne "\r"
 return 0
}

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
--------------------------------------------
Save it and reboot. Let me know if this works.

Serge



--

Serge Bromow
Omen Systems Int'l
<serge@xxxxxxxxxx>
888 411-OMEN (6636)
Ottawa, Canada.

IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify Omen Systems immediately by email at postmaster@xxxxxxxxxxx

Thank you.

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux