LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-18-2005, 11:55 PM   #1
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Rep: Reputation: 31
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,
 
Old 01-19-2005, 12:23 AM   #2
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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).
 
Old 01-22-2005, 01:17 PM   #3
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
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.
 
Old 01-22-2005, 02:30 PM   #4
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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.
 
Old 01-22-2005, 10:05 PM   #5
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
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
 
Old 01-24-2005, 10:50 AM   #6
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
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
 
Old 01-24-2005, 11:53 AM   #7
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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.
 
Old 01-24-2005, 11:56 AM   #8
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
Alright, I will give it a showt when I get home and update you probably tomorrow. Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default status(and runlevel) of services chessonly Ubuntu 0 11-18-2005 07:15 PM
default runlevel 2 ? javb Ubuntu 3 10-28-2005 01:39 PM
Default WM on Suse 9.2 @ Runlevel 5 maelstrom209 Linux - Software 2 12-06-2004 03:13 PM
Runlevel 5 default services pete_bogg Red Hat 7 10-31-2003 07:55 PM
debian default runlevel viniosity Linux - Software 3 03-31-2003 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration