Behavior of "shutdown -f -s" vs. "shutdown -s"?

B

Bert Hyman

XP Pro SP3

The description of the "-f" option is

"Forces running applications to close without warning"

Does this mean that all running apps immediately have the rug pulled out
from under them, without first receiving the windows message to do a
graceful exit?

I have my backup utility set to issue a "shutdown -s" command when it's
done every evening, but occasionally come in to see the machine still
running with a dialog displayed saying that some app or another could
not be terminated.

I'd really like the machine to shut down, but I'd also like any running
apps or services to get a chance to clean up after themselves.
 
P

Pegasus [MVP]

*** See below.

Bert Hyman said:
XP Pro SP3

The description of the "-f" option is

"Forces running applications to close without warning"

Does this mean that all running apps immediately have the rug pulled out
from under them, without first receiving the windows message to do a
graceful exit?
*** Yes - you could easily test this by observing what happens
*** when you issue the command while you have unsaved data
*** in an MS Word document.
I have my backup utility set to issue a "shutdown -s" command when it's
done every evening, but occasionally come in to see the machine still
running with a dialog displayed saying that some app or another could
not be terminated.

I'd really like the machine to shut down, but I'd also like any running
apps or services to get a chance to clean up after themselves.
*** It's not the cleaning up that's the problem but the expected human
*** interaction. When you issue an unattended shutdown command, who
*** will click the "yes/no" button in a dialog box with a prompt such as
*** "Do you want to save the changes to this document?"
 
B

Bert Hyman

In news:#[email protected] "Pegasus [MVP]"
*** See below.


*** It's not the cleaning up that's the problem but the expected human
*** interaction. When you issue an unattended shutdown command, who
*** will click the "yes/no" button in a dialog box with a prompt such
as *** "Do you want to save the changes to this document?"

Well, there shouldn't be any interactive applications running at
backup/shutdown time, just services and the like.

In retrospect, the few times I've encountered programs that wouldn't or
couldn't exit cleanly during the normal "shutdown -s" process, I
wouldn't have cared if they'd been terminated violently :)

On the other hand, I can't say the same about all the other processes
that nicely shut themselves down when asked.

It's too bad that the "-f" option doesn't try a clean shutdown first and
only kill the processes as a last resort.

Oh well... can't have everything.
 
B

Bob I

Two lines, one with -s the second with -f

Bert said:
Well, there shouldn't be any interactive applications running at
backup/shutdown time, just services and the like.

In retrospect, the few times I've encountered programs that wouldn't or
couldn't exit cleanly during the normal "shutdown -s" process, I
wouldn't have cared if they'd been terminated violently :)

On the other hand, I can't say the same about all the other processes
that nicely shut themselves down when asked.

It's too bad that the "-f" option doesn't try a clean shutdown first and
only kill the processes as a last resort.

Oh well... can't have everything.
 
P

Pegasus [MVP]

Bert Hyman said:
In news:#[email protected] "Pegasus [MVP]"


Well, there shouldn't be any interactive applications running at
backup/shutdown time, just services and the like.

If this is so then a forced shutdown (-f) is the appropriate method. It will
not do any damage.
 
S

Shenan Stanley

Bert said:
XP Pro SP3

The description of the "-f" option is

"Forces running applications to close without warning"

Does this mean that all running apps immediately have the rug
pulled out from under them, without first receiving the windows
message to do a graceful exit?

I have my backup utility set to issue a "shutdown -s" command when
it's done every evening, but occasionally come in to see the
machine still running with a dialog displayed saying that some app
or another could not be terminated.

I'd really like the machine to shut down, but I'd also like any
running apps or services to get a chance to clean up after
themselves.

-f - "Poof*, gone.

Just the way it works. If you want the most graceful shutdown possible -
you shutdown your applications manually, you then choose shutdown and answer
any queries you get.

If you have your backup utility set to do this when it is done - shouldn't
there be nothing open when you leave the computer of consequence anyway?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top