Artix Linux Forum

Init systems => runit => Topic started by: Wolfe on 13 August 2022, 21:43:08

Title: IPTSD and Runit
Post by: Wolfe on 13 August 2022, 21:43:08
Hi, has anyone installed the iptsd touchscreen with runit?

New Artix install on a Surface Pro 7 including the SP-specific kernal. It all works as expected but I can't get runit to start the touchscreen service.
Followed the example here: https://forum.artixlinux.org/index.php/topic,3407.msg22101.html#msg22101.
It can be started manually but only as root, 'permission denied' as user.

Could anyone point me in a direction to find the problem?
Title: Re: IPTSD and Runit
Post by: capezotte on 13 August 2022, 21:51:48
Where exactly are you stuck?
Title: Re: IPTSD and Runit
Post by: Wolfe on 13 August 2022, 22:49:01
Thanks for the response!
I've set up a service as described in the link but it doesn't start on it's own. I don't know where to go from there. Is there a bootlog for runit that might give a clue as to why it fails?
Title: Re: IPTSD and Runit
Post by: qontinuum on 14 August 2022, 08:54:05
Does the iptsd executable exist in the PATH?
Have you followed @capezotte 's advice on the thread you pointed?
Is the run script executable?
Have you linked your service directory to the appropriate runsvdir?

Is there a bootlog for runit that might give a clue as to why it fails?

No but issues on runit are usually pretty simple to debug since it works in a really simple manner
Title: Re: IPTSD and Runit
Post by: Wolfe on 14 August 2022, 12:57:44
Yes to all the above.
iptsd lives in /usr/bin, and

ls -alF /etc/runit/sv/iptsd:
-rwxr-xr-x  1 root root   29 Aug 11 03:24 run*
lrwxrwxrwx  1 root root   18 Aug 11 03:25 service -> /run/runit/service/

cat /etc/runit/sv/iptsd/run
#!/bin/sh
exec iptsd -n 2>&1
Title: Re: IPTSD and Runit
Post by: capezotte on 14 August 2022, 16:10:53
I think you got it backwards.

You're supposed to link /etc/runit/sv/iptsd to /run/runit/service (creating /run/runit/service/iptsd).

Not /run/runit/service to /etc/runit/sv/iptsd.
Title: Re: IPTSD and Runit
Post by: Wolfe on 14 August 2022, 17:03:18
Lol, works now....

Thanks so much!