LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2008, 08:28 PM   #1
etortola
LQ Newbie
 
Registered: Nov 2007
Location: Cagayan de Oro City, Philippines
Distribution: Slackware, Suse Enterprise Server, CentOS, Ubuntu
Posts: 7

Rep: Reputation: 0
Question Modifying runlevel on an already installed and running linux server


I'm a newbie and I'm using SLES 10 for my server. It's already up and running and I modified my boot.local to be able to run my glassfish application server on startup. my default runlevel is 5 and i want my system to run in console only but still have my Xwindows just in case i need to run a GUI. I have the following concerns:

1. would my changes affect the command that i appended on my boot.local?
2. would there be any significant improvements on the performance of my server?
3. what(files to be modified)and how should i modify my system to be abe to boot up my server until console only.

Sorry if my problem is very elementary for you guys. I'd appreciate all the help i can get. hope to learn more about linux and be good at it.
 
Old 04-20-2008, 11:21 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
1) My boot.local has this comment:
Quote:
script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
Assuming that boot.local is the same for all distros, then the answer is no, changing runlevel on boot should not have adverse effect on the running of your script.

2) Since you are not using GUI, I would think that you have more system resources available, and would probably seem some performance improvement.

3) edit /etc/inittab. change
Quote:
# The default runlevel is defined here
id:5:initdefault:
to this
Quote:
# The default runlevel is defined here
id:3:initdefault:
On re-boot, the system will boot into runlevel 3 (multi-user, text mode). You can still switch to GUI runlevel five by issuing this command: init 5. Then login again when the GUI login screen comes up.
 
Old 04-20-2008, 11:27 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you want the gui locally or remotely? Why do you want a gui on a server anyway?

Performance pickup? You should get some - the change will free up memory and some processor time
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A java application running at runlevel 3 MRMadhav Programming 5 04-20-2011 03:07 PM
Modifying Grub installed via fc8 to accomodate my new gentoo? neolithic_psyche Linux - Newbie 1 04-06-2008 04:15 PM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 03:19 AM
server wizards not there yet samba installed and running shaneblyth Mandriva 4 09-24-2003 05:21 AM
Installed USB device (CDRW) can't run in runlevel 5 richlittell Linux - Newbie 2 01-18-2003 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:01 PM.

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