12-23-2010
Sorry if I'm interrupting, but why should anyone want to trace and/or modify the way GNOME behaves for an issue like this. GNOME will probably signal init directly, just like shutdown, but without calling the shutdown binary. So the most sensible way, since the script is already started by init, would be to stop it using init too.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Working on AIX 4.3
I have an active exe that accepts files for processing on our RS6000. Day to day i store these files in a secure place and at the end of the day I mv them one by one. After some reading and ofcourse trial and error i figured out that this helps...
mv `ls -l |head -l | awk... (2 Replies)
Discussion started by: buRst
2 Replies
2. Programming
Hi,
I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.
Now I'm bothered about how to introduce a delay that is just
less than a second. Like... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
3. Solaris
Hi Experts,
I am running solris 9. Sun-Fire 880.
How do i shutdowon the whole server using ALOM i.e sc> console.
If the server is down or somehow hang How do i Restart from sc>
//purple (6 Replies)
Discussion started by: thepurple
6 Replies
4. 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
5. Emergency UNIX and Linux Support
I've got critical patching this weekend on 6 HP UX machines, back to back and the customer has requested to shutdown, and halt the machines and to bring it up at a later period. The thing is the servers are located offshore and we are just the support team. I have a special login thru a console... (16 Replies)
Discussion started by: hedkandi
16 Replies
6. Shell Programming and Scripting
Hi
I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies
7. UNIX for Dummies Questions & Answers
I have a list of URLs that I need to download in a file.
I know I can use the -i option to load the URLs from the file, but how can I make Wget wait a couple secs between each URL download? (4 Replies)
Discussion started by: rlopes
4 Replies
8. Shell Programming and Scripting
Hi,
I am trying to understand what would happen if ther is a loop without any delay like sleep statement, I feel that would add a lot of load onto the CPU. Trying to understand how the load is reduced by the introduction of sleep().
Thanks and regards
Zulfi (3 Replies)
Discussion started by: zulfi123786
3 Replies
LEARN ABOUT CENTOS
shutdown
SHUTDOWN(8) shutdown SHUTDOWN(8)
NAME
shutdown - Halt, power-off or reboot the machine
SYNOPSIS
shutdown [OPTIONS...] [TIME] [WALL...]
DESCRIPTION
shutdown may be used to halt, power-off or reboot the machine.
The first argument may be a time string (which is usually "now"). Optionally, this may be followed by a wall message to be sent to all
logged-in users before going down.
The time string may either be in the format "hh:mm" for hour/minutes specifying the time to execute the shutdown at, specified in 24h clock
format. Alternatively it may be in the syntax "+m" referring to the specified number of minutes m from now. "now" is an alias for "+0",
i.e. for triggering an immediate shutdown. If no time argument is specified, "+1" is implied.
Note that to specify a wall message you must specify a time argument, too.
If the time argument is used, 5 minutes before the system goes down the /run/nologin file is created to ensure that further logins shall
not be allowed.
OPTIONS
The following options are understood:
--help
Prints a short help text and exits.
-H, --halt
Halt the machine.
-P, --poweroff
Power-off the machine (the default).
-r, --reboot
Reboot the machine.
-h
Equivalent to --poweroff, unless --halt is specified.
-k
Do not halt, power-off, reboot, just write wall message.
--no-wall
Do not send wall message before halt, power-off, reboot.
-c
Cancel a pending shutdown. This may be used cancel the effect of an invocation of shutdown with a time argument that is not "+0" or
"now".
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO
systemd(1), systemctl(1), halt(8), wall(1)
systemd 208 SHUTDOWN(8)