Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-02 Thread Pierre THIERRY
How do I configure your script to restart apache when the power button is pushed? Because it has nothing to do with shutdown, you just change /etc/acpi/events/powerbtn, and modify it to action=invoke-rc.d apache restart Quickly, le Moine Fou -- [EMAIL PROTECTED] OpenPGP 0xD9D50D8A

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Cajus Pollmeier
On Donnerstag, 31. Juli 2003 07:24, Pierre THIERRY wrote: Package: acpid Version: N/A; reported 2003-07-31 Severity: serious Justification: Policy 9.1.1 The shell script /etc/acpi/powerbtn.sh should be installed in something else, like /usr/share/acpid/ or /usr/sbin/. -- System

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Colin Watson
On Fri, Aug 01, 2003 at 02:09:36PM +0200, Cajus Pollmeier wrote: On Donnerstag, 31. Juli 2003 07:24, Pierre THIERRY wrote: Package: acpid Version: N/A; reported 2003-07-31 Severity: serious Justification: Policy 9.1.1 The shell script /etc/acpi/powerbtn.sh should be installed in

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread David Z Maze
Cajus Pollmeier [EMAIL PROTECTED] writes: On Donnerstag, 31. Juli 2003 07:24, Pierre THIERRY wrote: Severity: serious Justification: Policy 9.1.1 (Debian should obey the FHS; I don't claim to be an FHS expert, but all it seems to say about /etc is no binaries, which this doesn't violate.)

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Pierre THIERRY
I think at least the RCness of this bug is rather dubious, frankly. If the script is configuration I don't think the script is meant to be edited... So it should be in /usr/sbin. Quickly, le Moine Fou -- [EMAIL PROTECTED] OpenPGP 0xD9D50D8A pgpjHl0gN4jh5.pgp Description: PGP signature

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Cajus Pollmeier
On Freitag, 1. August 2003 15:31, David Z Maze wrote: Cajus Pollmeier [EMAIL PROTECTED] writes: On Donnerstag, 31. Juli 2003 07:24, Pierre THIERRY wrote: Severity: serious Justification: Policy 9.1.1 (Debian should obey the FHS; I don't claim to be an FHS expert, but all it seems to say

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Matthew Garrett
Pierre THIERRY wrote: I don't think the script is meant to be edited... So it should be in /usr/sbin. You think wrong. The user should be able to choose whether the power button triggers shutdown or suspend to disk, for instance. -- Matthew Garrett | [EMAIL PROTECTED]

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Pierre THIERRY
You think wrong. The user should be able to choose whether the power button triggers shutdown or suspend to disk, for instance. But one shouldn't have to edit a shell script to do it. It should just be necessary to edit a configuration file. Like modifying the action value to something like

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Gunnar Wolf
Pierre THIERRY dijo [Fri, Aug 01, 2003 at 03:58:23PM +0200]: I think at least the RCness of this bug is rather dubious, frankly. If the script is configuration I don't think the script is meant to be edited... So it should be in /usr/sbin. There are many scripts in /etc that are not meant

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Gunnar Wolf
David Z Maze dijo [Fri, Aug 01, 2003 at 09:31:40AM -0400]: Cajus Pollmeier [EMAIL PROTECTED] writes: On Donnerstag, 31. Juli 2003 07:24, Pierre THIERRY wrote: Severity: serious Justification: Policy 9.1.1 (Debian should obey the FHS; I don't claim to be an FHS expert, but all it seems

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Josip Rodin
On Fri, Aug 01, 2003 at 10:32:47AM -0500, Gunnar Wolf wrote: Ummm... I *did* find something strange, maybe you can give some more insight on this: [EMAIL PROTECTED]:/$ find /etc -type f -perm -755|xargs file|grep ELF etc/X11/rstart/rstartd.real:ELF 32-bit LSB

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Matthias Urlichs
Hi, Matthew Garrett wrote: The user should be able to choose whether the power button triggers shutdown or suspend to disk, for instance. While I do agree that this kind of script is best placed in /etc, this kind of choice can be configured by a normal /etc/acpid.conf that's read by the

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Marco d'Itri
On Aug 01, David Z Maze [EMAIL PROTECTED] wrote: Is this script that gets run when the console user presses the power button, and is it obvious that the user could potentially want to configure it? If so, then it makes sense that it should be a configuration file, and so by policy 10.7.2 it

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Scott James Remnant
On Fri, 2003-08-01 at 14:58, Pierre THIERRY wrote: I think at least the RCness of this bug is rather dubious, frankly. If the script is configuration I don't think the script is meant to be edited... So it should be in /usr/sbin. I've edited it, and I'd bet I'm not the only one who has

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Pierre THIERRY
Tags: patch I've edited it, and I'd bet I'm not the only one who has a dog/cat/turtle/etc who keeps knocking the power button, resulting in a change to scheduling a shutdown in 1 minutes time :) I think a very good coded script should use a config file in /etc. But maybe it's a purist

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Scott James Remnant
On Sat, 2003-08-02 at 03:05, Pierre THIERRY wrote: Tags: patch You forgot to attach it :-) I've edited it, and I'd bet I'm not the only one who has a dog/cat/turtle/etc who keeps knocking the power button, resulting in a change to scheduling a shutdown in 1 minutes time :) I think a

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Pierre THIERRY
Tags: patch You forgot to attach it :-) Shit. And the BTS doesn't seem to have noticed the patch tag... Event-handling from cardmgr, hotplug, usbmgr, acpid, apmd etc. are really useful to be able to be customised by power users. I think I'm something like a power user, and I hate having to

Re: Bug#203588: acpid: Shell script has nothing to do in /etc

2003-08-01 Thread Scott James Remnant
On Sat, 2003-08-02 at 03:38, Pierre THIERRY wrote: Tags: patch You forgot to attach it :-) Shit. And the BTS doesn't seem to have noticed the patch tag... You meant to put tags 203588 patch, thanks and Bcc [EMAIL PROTECTED], didn't you? :-) Event-handling from cardmgr, hotplug,