11-21-2013
init 3 is the standard multi-user run level (without X). Running it doesn't reboot the server, it just changes the run level.
Regarding the "boot proto" setting, the file to change your IP from dynamic to static is /etc/sysconfig/network-scripts/ifcfg-ethn, not /etc/hosts.
What exactly do you see when you reboot the "server"? What means "nothing comes up"?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I'm a no Linux expert!
But I perfectly dual booted Win XP with RHL 7.3 on a hp pavilion notebook (model ze5170). All working fantastic now.
But I have a minor problem now. I can't get RHL probe the modem, so could not get the internet connection working. The modem is a Conexant... (1 Reply)
Discussion started by: Vishnu
1 Replies
2. UNIX for Dummies Questions & Answers
Another stupid question... and I can only hope someone can spend a little time answering it...
So thats it. I went thru the documentation out there at linmodems.org, trie this and that... read thru this post https://www.unix.com/showthread.php?s=&threadid=1787 on my favorite forums.
And... (3 Replies)
Discussion started by: Vishnu
3 Replies
3. Debian
Hi,
I have got myself a new hard disk- a 80 GB SATA IDE from Seagate. When I try installing Red Hat Linux 9(and RHL 7.2 too), it displays an error message saying that it fails to detect any hard drive. In the BIOS, I tried changing the drive configuration to "Legacy Drive", but that didnt help... (5 Replies)
Discussion started by: Abhishek Ghose
5 Replies
4. Shell Programming and Scripting
Hi All,
I need help in writing a script. I need a script that takes a name as a parameter and executes the follwoing steps.
The name will be like BUDGET01_BARE_DLY_YYYYMMDD, BUDGET02_BARE_DLY_YYYYMMDD etc. The YYYYMMDD represent today( systemdate). This names have to be passed as... (2 Replies)
Discussion started by: dsravan
2 Replies
5. AIX
Hello,
I am quite new to AIX, but have Linux experience.
Iam facing a peoblem with AIX 5.2 running on a 43p Model 150 (RS6000).
I tried everyting and i cant have the network to run properly. :confused:
/etc/hosts looks like this:
127.0.0.1 loopback localhost
192.168.XXX.XXX... (5 Replies)
Discussion started by: Netghost
5 Replies
6. Shell Programming and Scripting
Hello all,
I am new to unix.i need the interview questions commonly asked for shell scripting and unix.if anyone had the useful link please tell me.
Thanks in advance... (1 Reply)
Discussion started by: ithirak17
1 Replies
7. IP Networking
Hi,
Can anyone please tell me where I can get the small projects with source code based on client-server programming using sockets in unix :confused::confused::confused:
Thanks in advance... (1 Reply)
Discussion started by: smartgupta
1 Replies
8. Shell Programming and Scripting
First of all, let me state that I am a windows admin.
I have a windows share mounted to /mnt/server
I need a script that will either login as sudo or perform commands with sudo rights. I need the script to copy all of the users /home folders to the mounted windows share. Now If I can... (2 Replies)
Discussion started by: EricM
2 Replies
9. Linux
Hi I have an offline system, no access to the internet. It has a number of windows vms as well as some physical Red hat linux servers. I would like to one of the linux servers as a NTP server, so its local time is used as the reference point for all the other vms. How do I do this. Most of the... (1 Reply)
Discussion started by: kelseyh1
1 Replies
10. UNIX for Dummies Questions & Answers
For a student file with the following fields, rollno, name, marks. Generate 2 files ‘Pass' and ‘Fail‘containing records of student who have passed or failed. Also count the number of students who have passed or failed. (1 Reply)
Discussion started by: jainitai
1 Replies
HALT(8) Linux System Administrator's Manual HALT(8)
NAME
halt, reboot, poweroff - stop the system.
SYNOPSIS
/sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h]
/sbin/reboot [-n] [-w] [-d] [-f] [-i]
/sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h]
DESCRIPTION
Halt notes that the system is being brought down in the file /var/log/wtmp, and then either tells the kernel to halt, reboot or poweroff
the system.
If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked
instead (with the -h or -r flag). For more info see the shutdown(8) manpage.
The rest of this manpage describes the behaviour in runlevels 0 and 6, that is when the systems shutdown scripts are being run.
OPTIONS
-n Don't sync before reboot or halt.
-w Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
-d Don't write the wtmp record. The -n flag implies -d.
-f Force halt or reboot, don't call shutdown(8).
-i Shut down all network interfaces just before halt or reboot.
-h Put all harddrives on the system in standby mode just before halt or poweroff.
-p When halting the system, do a poweroff. This is the default when halt is called as poweroff.
DIAGNOSTICS
If you're not the superuser, you will get the message `must be superuser'.
NOTES
Under older sysvinit releases , reboot and halt should never be called directly. From release 2.74 on halt and reboot invoke shutdown(8) if
the system is not in runlevel 0 or 6. This means that if halt or reboot cannot find out the current runlevel (for example, when
/var/run/utmp hasn't been initialized correctly) shutdown will be called, which might not be what you want. Use the -f flag if you want to
do a hard halt or reboot.
The -h flag puts all harddisks in standby mode just before halt or poweroff. Right now this is only implemented for IDE drives. A side
effect of putting the drive in standby mode is that the write cache on the disk is flushed. This is important for IDE drives, since the
kernel doesn't flush the write-cache itself before poweroff.
The halt program uses /proc/ide/hd* to find all IDE disk devices, which means that /proc needs to be mounted when halt or poweroff is
called or the -h switch will do nothing.
AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl
SEE ALSO
shutdown(8), init(8)
Nov 6, 2001 HALT(8)