The officially official Devuan Forum!

You are not logged in.

#1 2023-02-13 22:37:02

Lorenzo
Member
Registered: 2020-03-03
Posts: 34  

runit-services: new package available !

Hi all,

an official package that contains runit services is finally available in unstable and testing.
Could be especially useful for runit-init users that are no expert or don't have the time
to write the scripts.
For now the number of scripts is limited [1] (other scripts will be added after
incoming Debian release); if a script for a service you are using is missing you can
file a wishlist bug report against the Debian package so that I can prioritize scripts
that are actually requested by users.
Also, reports or questions about the package are welcome too

To install just do

apt-get install runit-services

To understand how this package works I recommend to read
https://salsa.debian.org/Lorenzo.ru.g-g … ter/README
before installing.

Best,
Lorenzo

[1] available services are:
acpi-fakekey,
anacron
apache2
atd
chrony
cron
cups
dbus
dhclient
elogind
exim4
gdomap
haveged
isc-dhcp-server
lightdm
lircd
mariadb
mdadm
openntpd
postfix
preload
proftpd
rsyslog
sddm
slim
wicd
xdm

Offline

#2 2023-06-27 21:22:42

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 211  
Website

Re: runit-services: new package available !

Thanks for your work!

As a suggestion, you may consider using

sv check dbus || exit <some_value>

instead of

sv start dbus || true

in the runscript of those services that depend on dbus, like elogind and so on.

After all, this is the point of /etc/sv/dbus/check. Isn't it?

Last edited by aitor (2023-06-27 21:23:20)


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#3 2023-06-30 19:23:02

Lorenzo
Member
Registered: 2020-03-03
Posts: 34  

Re: runit-services: new package available !

Hi,

As a suggestion, you may consider using

sv check dbus || exit <some_value>

instead of

sv start dbus || true

(sv start)  is equal to (sv up + sv check), so the subtle difference is that I'm forcing the wanted status to be 'up' before the check;
as for true vs exit <some_value> I'm using the latter for hard dependency and true for soft dependency. Of course I may have wrongly set a dependency as soft instead of hard..
Do you have a script that doesn't work for your use case? If yes please report it and I'll have a look again.

Offline

#4 2023-07-03 19:22:59

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 211  
Website

Re: runit-services: new package available !

Lorenzo wrote:

Hi,

As a suggestion, you may consider using

sv check dbus || exit <some_value>

instead of

sv start dbus || true

(sv start)  is equal to (sv up + sv check), so the subtle difference is that I'm forcing the wanted status to be 'up' before the check;
as for true vs exit <some_value> I'm using the latter for hard dependency and true for soft dependency. Of course I may have wrongly set a dependency as soft instead of hard..

Ok, I understand. My thought was that sv check dbus started the service in case it was down.

Do you have a script that doesn't work for your use case? If yes please report it and I'll have a look again.

No, I haven't. Your scripts worked fine during the time I have spent testing them in daedalus. Nonetheless, if this happens, I'll let you know. Thanks!


If you work systematically, things will come by itself (Lev D. Landau)

Offline

Board footer