delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/20/10:51:15

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=EFLLB+3
7uHP7eZU4BPQI4cI5blkUBNmnsxpslClZcV5Lr/3FrzCHEOYpnsniFJlGjp18eXR
MGwxAgFi9d6vPx9odj6YVaibXbppPwFduV8d6TAv4YEZgHxTPstVP1DVOBVa4aZe
q0j4mW+PqKXphe8v9s2O11GMvg7u2xhKReDQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=VhDypC/atx5hP
OzHuk52dJlwY1g=; b=CFzKQgLE0cniFGQfbSxpoPcdyW8uAD9QUl41JBUF2/+xy
Oh10x+h2pX2IE7gj0O4xWx3MiljHJ86bk2G7UcwAQWJwAA2AwweLMaTgwNhbfKHv
BTSOE6CCsEabon8Pqkr7B0Vcfpc8mPhYrAqPeTmasDzw7Yr/9FVUCDrVcc22Ns=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1
X-Received: by 10.152.133.52 with SMTP id oz20mr5639878lab.30.1363791044597; Wed, 20 Mar 2013 07:50:44 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAKf2h5TLQVguRZ0C_Z0A0_W7z_PcYjWLcgSKASxUf51V9n+uow@mail.gmail.com>
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>
From: Frank Fesevur <ffes AT users DOT sourceforge DOT net>
Date: Wed, 20 Mar 2013 15:50:14 +0100
Message-ID: <CAKf2h5RHhhNKy-_Az3f3gNhs3Xjzts8A8F1DwUUCb211k44C-Q@mail.gmail.com>
Subject: Fwd: reboot command behaves different on Linux
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin 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 AT YYYY DOT ZZZ>
Date: 2013/3/19 14:02
Subject: Re: reboot command behaves different on Linux
To: "XXXX AT YYYY DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019