Artix Linux Forum

Init systems => runit => Topic started by: elonsbelly on 16 October 2023, 22:13:39

Title: User level runit service error: permission denied
Post by: elonsbelly on 16 October 2023, 22:13:39
I created a runsvdir for my user to run some services (like pulseaudio, mpd, rclone, syncthing) following [void doc about the same](https://docs.voidlinux.org/config/services/user-services.html) ,

It was working, but today I reinstalled artix and suddenly the runsvdir-user service is giving timeout when starting,

I saw this error in htop:
`runsvdir -P /run/runit/service log: t directory: access denied runsvdir /home/dhruv/.local/service/`

tried `chmod 777 ~/.local/service` but still same issue,

heres the run file for

```sh

#!/bin/sh

export USER="dhruv"

export HOME="/home/dhruv"

groups="$(id -Gn "$USER" | tr ' ' ':')"

svdir="$HOME/.local/service"

exec chpst -U "$USER:$groups" runsvdir "$svdir"

```

can anyone help me debug this issue.
Title: Re: User level runit service error: permission denied
Post by: statzitz on 20 March 2024, 14:01:02
I had the same issue when I tried to make my user run some service.

For me the problem was that my  `/etc/runit/sv/myuserservice` folder had `drwx------` permissions and my `/etc/runit/sv/myuserservice/run` had `-rwx------`

I just had to do `sudo chmod -R a+rx /etc/runit/sv/myuserservice` and it worked.

Perhaps you're problem came from the same reason?