View previous topic :: View next topic |
Author |
Message |
lukaszymon Junior Member
Joined: 27 Feb 2011 Posts: 1
|
Posted: Sun Feb 27, 2011 2:45 am Post subject: service start OK or FAILED |
|
|
Hi,
Please help me!
I'm try to indicate scripts OK or FAILED on my slackware64 box just like on this picture but I don't know how
http://sms.it-ccs.com/screenshots/verbose.jpg
Thanks |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Feb 27, 2011 11:03 am Post subject: |
|
|
You need to load /etc/init.d/functions in every startup script by adding at top.
Code: | # Source function library.
. /etc/init.d/functions
|
echo_success returns [ OK ]
echo_failure returns [FAILED]
So by running
Code: | . /etc/init.d/functions; echo -n "start app"; echo_success; echo; |
you get the picture
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|