Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-18-2005, 11:55 PM
|
#1
|
Member
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390
Rep:
|
default runlevel for Mandrake 10
Hello,
I am trying to create a start up script for my dynamic dns client but I can't seem to find the default runlevel for my linux box (mandrake 10).
It has the default runlevels in the README file for redhat and suse but nothing for mandrake. It just simply says "normally it is in rc5.d in the init.d directory.
I went to the /etc/init.d but I don't see any rc*.d directories in there at all. Can anyone tell me where I can find my runlevels and tell me which is the default.
Thanks,
|
|
|
01-19-2005, 12:23 AM
|
#2
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
It would be under /etc/inittab at the top.
Code:
# Default runlevel. The runlevels used by Mandrakelinux are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
The bold would be your system's default runlevel (mine is a 5 for GUI).
|
|
|
01-22-2005, 01:17 PM
|
#3
|
Member
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390
Original Poster
Rep:
|
Mine is also set to level 5. I have never set a startup script so this will be interesting to say the least. Thanks for the help.
|
|
|
01-22-2005, 02:30 PM
|
#4
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
To change to a different run level while running Linux, simply type "init #" where "#" is the runlevel you wish to change to (or include in your script). It does not change /etc/inittab.
|
|
|
01-22-2005, 10:05 PM
|
#5
|
Member
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390
Original Poster
Rep:
|
This is more for setting up a boot up script to start things like vncserver and rundns on my linux box for when I reboot. Rundns is telling me how to set up the script in runlevels that have an rc# directory. Since mandrake doesn't have that I assume I can set the script up in my inittab. As always the man page is cryptic but I think I have made a possibly correct entry and just have to reboot to test and see if it works
|
|
|
01-24-2005, 10:50 AM
|
#6
|
Member
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390
Original Poster
Rep:
|
Well I tried to set it up so that my script would boot but it didn't seem to work once I rebooted my machine. The entry that I have for my inittab file (at the bottom of the file) is the following:
# rundns start up script for dynedns.org
20:5:boot:/home/lmcilwain/scripts/rundns_ssl_start
|
|
|
01-24-2005, 11:53 AM
|
#7
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
Have you tried different values for the "action" field? A vnc server should be started after the network has been initiated, which would make sense to run the script after booting the machine. Try out "respawn" and "once". If those don't work i would give "wait" a shot.
|
|
|
01-24-2005, 11:56 AM
|
#8
|
Member
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390
Original Poster
Rep:
|
Alright, I will give it a showt when I get home and update you probably tomorrow. Thanks for the help.
|
|
|
All times are GMT -5. The time now is 04:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|