02-17-2009
You're right Perderabo, I have been really distracted on that point.
Everything's clear now.
Thanks for your help.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hai
Could somebody tell me the solution to my problem.
the question is as follows
there is one unix server and 100 dummy terminals connected to my server, i want to shutdown client system if some of the
client forgetten to power down their system.
plez provide me the code for that. (2 Replies)
Discussion started by: rajashekaran
2 Replies
2. SuSE
Hello all
I'm trying to automate the startup/shutdown of my database whenever the OS is bounced ...
OS : Linux (Kernel : 2.4.20.-6)
Oracle : 9.2.0.5
The contents of /etc/init.d/dbora file is listed below
case "$1" in
'start')
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbstart"... (1 Reply)
Discussion started by: luft
1 Replies
3. UNIX for Dummies Questions & Answers
Hello all -
On some of the systems we use - AlphaServer es40 Tru64 digital unix - you can login with the username: shutdown - with no password - and it shuts down the system gracefully. I've tried to trace what's going on in the system, but to no avail.
I've been searching the web, but... (1 Reply)
Discussion started by: kapolani
1 Replies
4. UNIX for Advanced & Expert Users
Hi Guys,
I want to execute few of my bash script, so that whenever someone calls shutdown now -r command, I want my script to execute first before shutting down.
Any help please?????
I've just started playing with the unix system, so far its been brilliant.... (10 Replies)
Discussion started by: alpha_manic
10 Replies
5. UNIX for Advanced & Expert Users
Firstly uname -a = UnixWare companyname 5 7.1.4 i386 x86at SCO UNIX_SVR5
Server is an HP Proliant ML350 G4 Tower
Right, now to the problem.
We frequently have power outtages and lightning strikes here due to our location in a VERY rural part of the UK.
As such, I need to be able to remotely... (6 Replies)
Discussion started by: aewpcoles
6 Replies
6. HP-UX
Hi,
I am on Alpha Server with HP Tru64 system.
I wish to setup shutdown to automatically and cleanly shutdown informix during the shutting down of the system.
Ie. I was trying to use rc0.d to do this but failed.
Has anyone tried doing this before? I already have the script and linked it
to... (0 Replies)
Discussion started by: kingsto88
0 Replies
7. AIX
Hi Guys,
Please help in this...when we start HACMP services ..server is getting shutdon.
Error mesg from cluster.log.
Apr 14 08:43:27 bascop17 snmpd: NOTICE: SMUX trap: (0 0) (127.0.0.1+46302+1)
Apr 14 08:43:33 bascop17 topsvcs: (Recorded using libct_ffdc.a cv 2):::Error ID:... (1 Reply)
Discussion started by: b_manu78
1 Replies
8. Solaris
Hi
is shutdown and init 0 are same command in solaris? (2 Replies)
Discussion started by: mokkan
2 Replies
9. UNIX for Dummies Questions & Answers
I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS).
Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies
10. AIX
Hi,
I'm testing out this plink script - which will be executed to shutdown multiple LPARs.
This consists from:
plink -i /path/ssh/cert/ root@host shutdown -F
plink -i /path/ssh/cert/ root@host2 shutdown -F
The commands gets executed, however it stops on one host, and does not move... (6 Replies)
Discussion started by: ollie01
6 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)