[SOLVED] Creating a runit service for iptsd on a Surface device
I was able to install Artix on my Microsoft Surface Go tablet. I followed the Arch install instructions here:
https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup#Arch
Everything translates directly to Artix except this last step of course:
systemctl enable iptsd
This service is needed for the touchscreen to work. It can be started manually with the command "iptsd". I created my own runit service for it. The file "run" was stored in /etc/runit/sv/iptsd/ and contains:
#!/bin/sh
exec iptsd -n 2>&1
I just used the existing run file for cronie as a template. My question is, what does the "-n 2>&1" part mean? The iptsd service now works as expected, I just want to understand what the script is doing.
By the way, anyone else reading this and wishing to do the same thing on a Surface device, don't forget to make the script executable and enable the service:
chmod a+x /etc/runit/sv/iptsd/run
ln -s /etc/runit/sv/iptsd /run/runit/service