Problem relocating to another state with Shutdown


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem relocating to another state with Shutdown
# 1  
Old 11-02-2012
Code Problem relocating to another state with Shutdown

How are you, good afternoon, I do not speak and I do not write in English, and I'm iniciandome in unix / linux on my own, I am using the google translator, my question is this, know what are the shutdown command to change user State:

# shutdown -y -g0 -i0 (completely off my system)
# shutdown -y -i1 (switch to single-user state)
but when I switch to another state like 2 or 3 or 4 or 5 can not, I get a message as follows after executing the command, for example:
# shutdown -y :(-i2 get the following message
shutdown: 2: bad runlevel

I checked those states and in my / etc / inittab.
Thank you for your response, good passing day.
# 2  
Old 11-02-2012
Could you run the following command and paste the result ?
Code:
uname -a

This User Gave Thanks to ctsgnb For This Post:
# 3  
Old 11-02-2012
#uname -a
Linux pc01 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
# 4  
Old 11-02-2012
Check if you have the command telinit and the syntax of it
Code:
man telinit

This User Gave Thanks to ctsgnb For This Post:
# 5  
Old 11-02-2012
Yeah,

Synopsis
/sbin/init [ -a] [ -s] [ -b] [ -z xxx] [0123456Ss]
/sbin/telinit [ -t sec] [ -0123456sSQqabcUu]

I'm trying but I get some help?
# 6  
Old 11-02-2012
Could you run the following command and paste the result ?
Code:
who -r

Code:
runlevel


Last edited by ctsgnb; 11-02-2012 at 07:51 PM..
This User Gave Thanks to ctsgnb For This Post:
# 7  
Old 11-03-2012
`run-level' 5 2012-11-02 15:26 último=S

---------- Post updated at 05:19 PM ---------- Previous update was at 05:17 PM ----------

I am learning using a UNIX manual 1995, that's why I'm using the shutdown like this in the first publication, and perhaps that some errors are coming out because I'm using Linux Centos 5.4, you will have some manual Spanish I recommend, in fact I have to learn the English language, whether or if, thanks for your reply.
Now I have to go to school, thanks for your time, come back later, that Dr ctsgnb good day passes.

---------- Post updated at 11:48 PM ---------- Previous update was at 05:19 PM ----------

¿¿.....??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Problem on capturing system Shutdown

I am having exactly the same problem with https://www.unix.com/programming/129264-application-cleanup-during-linux-shutdown.html but the thread is old and closed. The only difference is that I use sigaction() instead of signal(), which is recommended, as far as I know. This is my code: ... (9 Replies)
Discussion started by: hakermania
9 Replies

2. Shell Programming and Scripting

Problem with a script for checking the state of a process

Hello Everyone, I have a process that should be always running. Unfortunately, this process is getting down almost every 10 minutes. I want to make a script that verify the state of this process: If the process is up, the script shouldn't do nothing and if it's down he should run it. Can... (3 Replies)
Discussion started by: adilyos
3 Replies

3. Red Hat

Problem with Stop Script during shutdown of o/s

Friends , I create two script for oracle database startup and shutdown . $ cat start.sh ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 ORACLE_OWNER=oracle su - oracle << ! sqlplus / as sysdba << ! startup $ cat stop.sh ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1... (1 Reply)
Discussion started by: shipon_97
1 Replies

4. Solaris

Problem with state database

Hi Experts, I am facing problem while creating a concatenated volume. I would like to decribe the process I did: 1- I created state data base with slice1,slice2,slice3,slice4,slice5,slice6 with command: #metadb -a -f slice1 slice2 ........ slice6 From metastas, everything seems to... (6 Replies)
Discussion started by: naw_deepak
6 Replies

5. Solaris

Server Shutdown Problem

I have a sparc T1 server (I know its old) running Solaris 8, which we use for testing. It has been very slow in response- prompt takes couple of minutes to come up, so I decided to reboot the server but I can reboot it, it is giving following errors when I try to shutdown it down. root@deva:/#... (3 Replies)
Discussion started by: Tirmazi
3 Replies

6. UNIX for Dummies Questions & Answers

Shutdown and Reboot problem

Hi, i have sco openserver 5.0.6 but have a problem with shutdown or reboot commands. The string I use is "shutdown -g0 -y" but the system just hangs on "The sytem is down" . I used to get a "Safe to turn of" but now nothing. Same with "reboot" the sytem just freezes. Any suggestions? (1 Reply)
Discussion started by: VTechman
1 Replies

7. Solaris

Relocating directory /export/home to a bigger filesystem

My 2GB /export/home/ directory is almost 100% full df -k | grep /export/home /dev/vx/dsk/rootdg/vl73 2031711 1951009 19751 99% /export/home I intend to relocate it to a different 4GB filesystem late at night when there is no user on the system. How do I go... (3 Replies)
Discussion started by: Msororaji
3 Replies

8. Post Here to Contact Site Administrators and Moderators

Relocating a post

I posted a question regarding the address of the USB ports on an HP computer running SCO Unix. My post does not appear on the "Unix for Dummies Q&A" page, but is burried somewhere and the only way I can view it is to do a search for the title of the post. Could you relocate my post to the UFD Q&A... (2 Replies)
Discussion started by: Don48
2 Replies

9. UNIX for Dummies Questions & Answers

sudoers file and Shutdown problem

Help please I have today messed up my sudoers file which means no users can sudo in to our system. I therefore need to do a restore of the file - no problems, I have a backup. Now comes the problem. The system is secure, and nobody seems to know the root password. The system will not... (1 Reply)
Discussion started by: cobdeng
1 Replies

10. UNIX for Advanced & Expert Users

Shutdown Problem

Hi,guys I have a two CPUs server, and the system is linux2.4.6. When the system shutdown,it will stop at the word Power Down. I f I do not select the option "Symmtric multi-processing Support" when I compile the kernel,system will shutdown automatic.But I want to use two CPUs. Anyone can... (1 Reply)
Discussion started by: lance
1 Replies
Login or Register to Ask a Question