List init scripts command
Considering a Debian VM, present an ordered listing of the init scripts (including parameters) when the runlevel switch to 6. Any help? I have tried allot of commands but most of them only list the services like:
ls /etc/rc6.d |
Quote:
http://www.tldp.org/LDP/sag/html/run-levels-intro.html |
He didn't teach a thing. He only give you that questions and then you have to send to him the answers.
|
I would suggest you start reading...
You can also read one or two of the init scrips... I image you will find a line that has the options. You should be able to use a command to pick out just that line... |
To see which scripts are run when switching to runlevel X look at /etc/rcX.d.
To see in which order they are run look at the numbers in the names of the links. The parameters that are used are determined by the first letter of the links name, K is for stopping a service, S is for starting a service. Keep in mind that only those scripts are run which have to run: If a service is already running and you switch to a runlevel which would also start that service nothing is done. So you need to look at the starting runlevel and the stopping runlevel to determine which scripts are run. In case of runlevel 6 (or 0, for that matter), this is exceptionally easy. |
Quote:
Again, go back to some basic research; TLDP has plenty of hints, and you were given a link previously. TobiGSD also gave you a pretty good explanation of things as well. |
I know that scripts with run level 6 are stored on /etc/rc6.d.
I have tried allot of command but all only show the list of the scripts without of the parameters. I have search for days and nothing and so i decided do ask to someone for help |
Quote:
|
Quote:
Quote:
Again, the ones with S in front of them are for STARTING a script...the ones with K are for KILLING (stopping). To spoon-feed you an answer, the ones with S have a parameter of "START"...K would be "STOP". Additional flags for services are controlled by configuration file(s) for those services. |
Or heaven forbid - try to run one without parameters even...
|
l0:6:wait:/etc/init.d/rc 6
|
Quote:
|
Quote:
I have searched for days and nothing. I have found nothing!!!! on rc6.d are only the symbolic links |
Quote:
AGAIN: Scripts starting with S are for STARTING that service. K is for STOPPING. Quote:
Again, your question has been answered several times. Not much else anyone, anywhere can help you with. If you're having this much trouble, ask your teacher for help. |
But if i print the symbolic symbols only with S the answer is wrong!
The teacher don't want us to print that symbolic symbols that are on rc6.d that is the problem. |
All times are GMT -5. The time now is 08:35 AM. |