1 |
On 11/13/19 09:55, Mick wrote: |
2 |
> On Wednesday, 13 November 2019 06:48:11 GMT n952162 wrote: |
3 |
>> I've reinstalled gentoo from the gentoo repository and now my power |
4 |
>> button doesn't do a shutdown anymore. What do I have to do to have it |
5 |
>> issue a shutdown? This is an openrc system. |
6 |
>> |
7 |
>> I have this, but it doesn't work: |
8 |
>> |
9 |
>> $ cat /etc/acpi/events/powerbtn |
10 |
>> event=button[ /]power.* |
11 |
>> action=/sbin/poweroff |
12 |
|
13 |
Okay, I'm a bit further. |
14 |
|
15 |
I have that file as well, but it doesn't do anything because another |
16 |
script in that same directory, "default", has this: |
17 |
|
18 |
event=.* |
19 |
action=/etc/acpi/default.sh %e |
20 |
|
21 |
//etc/acpi/default.sh /invokes /actions/powerbtn.sh/ which checks if the |
22 |
init program (process 1) is running with the name "openrc-init". |
23 |
Otherwise, it's not interested. |
24 |
|
25 |
Unfortunately, I have: |
26 |
|
27 |
$ ps -p 1 -o comm= |
28 |
init |
29 |
|
30 |
Question: when does the init program run under the name openrc-init? |