MESSAGE
DATE | 2021-08-09 |
FROM | Dudemanguy
|
SUBJECT | Re: [Hangout - NYLXS] [artix-general] [s6] starting oneshots as non
|
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. -- artix-general mailing list artix-general-at-artixlinux.org https://lists.artixlinux.org/listinfo/artix-general _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|