Fwd: reboot command behaves different on Linux

Frank Fesevur ffes@users.sourceforge.net
Wed Mar 20 14:51:00 GMT 2013

The message below never made it through to the list, according to
<http://cygwin.com/ml/cygwin/2013-03/>, probably because of the
attached file.

What is the best way to share the code I've written for the shutdown package???


---------- Forwarded message ----------
From: Frank Fesevur <XXXX@YYYY.ZZZ>
Date: 2013/3/19 14:02
Subject: Re: reboot command behaves different on Linux

2013/3/19 marco atzeri:
> reboot on cygwin is just a link to shutdown

I know. But the symlinks "reboot", "hibernate" and "suspend" don't
react as I would have expected.

I have attached a patched/rewritten version of the shutdown command.
It also adds support for a symlink named "halt" and "poweroff". It is
up to Corinna if she likes my version or not.

$ ./halt --help
Usage: halt [OPTION]...
Bring the system down.

  -f, --force      Forces the execution.
  -x, --exitex     Use ExitWindowsEx rather than InitateSystemShutdown.
      --help       Display this help and exit.
      --version    Output version information and exit.

If wanted I'm willing to create basic shutdown.8 and reboot.8 man pages.


Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list