LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-21-2004, 09:29 AM   #1
thongor
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
startup process


hi all,


i would like to have the result of the starting process

like "done" or fail" when my slack is starting

like the snapshot of the verbose-mode found on the bootsplash.org site

i don't speak about the background but about the text on the screen

thanks for your help
 
Old 03-21-2004, 10:20 AM   #2
mightymouse
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
Oh, you can just modify your startup scripts to do that. If you look at the stuff in /etc/rc.d/ you will see the scripts contain lots of stuff like:

if [ -x /path/to/some_file ]; then
/path/to/some_file;
fi

You can just just change it to something like:

if [ -x /path/to/some_file ]; then
/path/to/some_file && echo "Starting some_file";
fi

If you want to print that your attempting to start the process, and then print another message to say whether or not it started successfully, you can just have a line - echo "Attempting to start some_file..." _before_ the line to run it, and then another nested if construct to test if it worked or not and print "done" or "fail" etc.

The method I mentioned above is simpler to implement and avoids the hassle with the method you want which will be complicated by the fact that programs often print some information of their own when started which may mess up your own output text.
 
Old 03-21-2004, 10:23 AM   #3
mightymouse
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
Oh, and incase you wondered the "&&" is used when you want to run the second command _only_ if the first executed successfully. It just means "AND" in other words. That means the text "Starting some_file" in my example will only be printed if some_file was run successfully.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Startup Process easyE Linux - General 2 05-03-2005 05:37 PM
Configuring the startup process thephotoman Debian 5 10-01-2004 10:20 PM
Killing a process on startup...... har5ha Linux - Software 3 07-24-2004 12:52 PM
running a process at startup jmu Linux - Newbie 5 02-11-2003 05:52 PM
idle a moment in startup process alxle Linux - General 1 12-23-2001 08:53 AM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration