Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Is it possible to create a new runlevel (say, runlevel 7)? If so, how do we go about this? I have added a line to inittab, but was hoping there was a way to have chkconfig or another service related program autocreate the rc*.d directories.
After creating a line in inittab and trying to have a dummy script in init.d be defined to run in runlevel 7, chkconfig would not accept it when I tried to --add.
What exactly are you trying to achieve by doing this? Perhaps you don't understand how run levels work. Perhaps you need to learn more about SysV which most standard Linux OS's use and invoked from the kernel. If you actually wanted to add another run level, it would probably require you to rewrite the kernel and Redhat's chkconfig utility and probably a slew of other programs. Simply adding a new level in 7 won't do squat.
I would imagine the existing ones are sufficient. If you want to control what program starts in a certain run level, simply customize each with chkconfig.
Thank you for your response.
I do understand how runlevels work, I just needed to know if it was feasible to add more. I'm afraid I can't explain any more than I have said. You have answered my question though, so thanks again, trickykid.
Cheers.
Perhaps you could use one of the defined levels that isn't used (normally) by RHEL.
I had to do similar for one of the Ubuntu betas when I wound up with a seriously borked system - would only come up in single user mode. Just stole all the init scripts for the normal runlevel, and modified what I needed, then just init'd into it. Enabled me to get to the network up, and rebuilt what I needed to get working again.
O.K. for a "one-off", don't know about long-term usage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.