Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » General Discussion

Post new topic   Reply to topic
service start OK or FAILED
View previous topic :: View next topic  
Author Message
lukaszymon
Junior Member


Joined: 27 Feb 2011
Posts: 1

PostPosted: Sun Feb 27, 2011 2:45 am    Post subject: service start OK or FAILED Reply with quote

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 Sad
http://sms.it-ccs.com/screenshots/verbose.jpg

Thanks
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Feb 27, 2011 11:03 am    Post subject: Reply with quote

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
Code:
start app                                                  [  OK  ]


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional