[artix-general] [s6] starting oneshots as non root

Dudemanguy dudemanguy at artixlinux.org
Tue Aug 10 01:17:19 CEST 2021


On 8/9/21 4:34 PM, Javier wrote:
> Hi !
> 
> I was working on this:
> 
> https://gitlab.com/je-vv/rtorrent-s6
> 
> And I can start the service logged as root, without logging as the 
> specified user, and of course it also works starting the service with 
> sudo logged as the non root specified user.
> 
> However on boot, the service never starts.  I don't specify logs where 
> to keep failures or something, perhaps I take a look at a common log for 
> s6 stuff later.  But I'm guessing this is something other users have 
> faced with s6.  This was a common thing to do with sys-v init, though 
> now a days with elogind, things have changed I guess (the systemd way is 
> quite different)...
> 
> Any hints?
> 

If you want to run a command as a certain user, you can use the
s6-setuidgid program which is designed for this. I see you are calling
screen in this script though so I would not expect that to work unless
you are actually logged in.


More information about the artix-general mailing list