Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
Aside from doing the LS command, what else did your teacher/book tell you? This is a verbatim homework question...and there are plenty of things you can find on Google for this, one good place to start is the Linux Documentation project:
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.
He didn't teach a thing. He only give you that questions and then you have to send to him the answers.
Not much point in homework if you don't actually DO the work, is there? Isn't learning the answer the entire POINT of homework/school? And by sending him the answers, that's exactly how you are graded.
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
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
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.
jpollard answered this. Re-read the answer.
Quote:
I have search for days and nothing and so i decided do ask to someone for help
The first link I gave you in post #2 tells you what you need, if you tried to read/understand it. If you are having this much trouble with your homework, and have spent DAYS searching (unlikely, since Google pulls up THOUSANDS of hits/answers in less than a second), you need to talk with your teacher, and get some additional help.
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.
I just give up. I have searched for days and nothing. I have found nothing!!!!
You were given the answer SEVERAL times in this thread. Either you didn't read what you were given, or didn't understand it. There's nothing anyone here can do to help you with either of those things.
AGAIN: Scripts starting with S are for STARTING that service. K is for STOPPING.
Quote:
on rc6.d are only the symbolic links
Right...and those symbolic links point to scripts elsewhere on the system. Since different things may be needed in different run-levels, putting multiple copies of the SAME SCRIPT into multiple locations is pointless, and makes things harder to update. Since the symbolic links are treated just like a 'regular' script, you can obviously see them, and obviously know which ones are in the different runlevel directories.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.