Artix Linux Forum

Init systems => OpenRC => Topic started by: nikgre on 15 November 2020, 12:40:46

Title: [SOLVED] openrc-shutdown in i3
Post by: nikgre on 15 November 2020, 12:40:46
Hello everyone,
i just switched from archlinux to artixlinux with openrc.
since you cant shutdown without root access ive configured visudo to not require a password when im shutting down.
In my i3 config i wrote sudo openrc-shutdown -p to power off

But is this actually the correct way to do it?
Wasnt really finding anything on the wikis about that.
Title: Re: openrc-shutdown in i3
Post by: linuxer on 15 November 2020, 12:52:06
No, it is definetely wrong.

You should use the following:

Code: [Select]
loginctl poweroff
Title: Re: openrc-shutdown in i3
Post by: nikgre on 15 November 2020, 12:57:58
No, is definetely wrong.

You should use the following:

Code: [Select]
loginctl poweroff
Oh thanks, just got a bit confused since the normal poweroff command links to openrc-shutdown
Title: Re: [SOLVED] openrc-shutdown in i3
Post by: nous on 15 November 2020, 13:48:35
Well, I routinely use poweroff. Sue me!  8)
Title: Re: [SOLVED] openrc-shutdown in i3
Post by: linuxer on 15 November 2020, 14:04:29
Well, I routinely use poweroff. Sue me!  8)
lol
Title: Re: [SOLVED] openrc-shutdown in i3
Post by: richie on 19 December 2024, 09:20:41
Well, I routinely use poweroff. Sue me!  8)
how can i make it work without root?