This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Fwd: reboot command behaves different on Linux
- From: Frank Fesevur <ffes at users dot sourceforge dot net>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 20 Mar 2013 15:50:14 +0100
- Subject: Fwd: reboot command behaves different on Linux
- References: <CAKf2h5TZsPKE-ggz+HsARnybJamzb6tmkuFrQDO37gfhuFQkqA at mail dot gmail dot com> <51485151 dot 5010001 at gmail dot com> <CAKf2h5TLQVguRZ0C_Z0A0_W7z_PcYjWLcgSKASxUf51V9n+uow at mail dot gmail dot com>
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???
Regards,
Frank
---------- Forwarded message ----------
From: Frank Fesevur <XXXX@YYYY.ZZZ>
Date: 2013/3/19 14:02
Subject: Re: reboot command behaves different on Linux
To: "XXXX@YYYY.ZZZ"
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.
Regards,
Frank
--
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