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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: <51485151 DOT 5010001 AT gmail DOT com> From: Frank Fesevur Date: Wed, 20 Mar 2013 15:50:14 +0100 Message-ID: Subject: Fwd: reboot command behaves different on Linux To: "cygwin AT cygwin DOT com" Content-Type: text/plain; charset=ISO-8859-1 The message below never made it through to the list, according to , 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 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