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.
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.
# 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).
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.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.