Artix Linux Forum

Init systems => runit => Topic started by: xanadu on 03 December 2020, 09:23:22

Title: devolo-dlan-cockpit
Post by: xanadu on 03 December 2020, 09:23:22
Devolo provides a graphical tool for its powerline communications networks which is available also on Artix through AUR.* It includes a network service called "devolonetsvc.service" that runs in the background and is mandatory in order to use the graphical tool. Unfortunately the "devolonetsvc.service" is written for systemd. Is there any chance to convert it to runit?

*https://aur.archlinux.org/packages/devolo-dlan-cockpit (https://aur.archlinux.org/packages/devolo-dlan-cockpit)
Title: Re: devolo-dlan-cockpit
Post by: nous on 04 December 2020, 08:07:29
Services for runit are the easiest to write. Just create an executable /etc/runit/sv/devolo/run file:
Code: [Select]
#!/bin/sh
exec /usr/bin/devolonetsvc 2>&1
The systemd service file also has a WorkingDirectory rule, not sure if it's needed and how it can be implemented in runit (openrc guy here).