Artix Linux Forum

Init systems => runit => Topic started by: SoloLearner on 24 August 2020, 15:58:21

Title: [SOLVED] Timers on runit
Post by: SoloLearner on 24 August 2020, 15:58:21
Hello guys, recently i go to runit and i am trying to create a service which related with systemd timers.target. Which tool can i use to complete my service?
Title: Re: Timers on runit
Post by: nous on 24 August 2020, 19:20:51
AFAIK, timers is a flashy reinvention of the wheel by systemd in its way to absorb more and more standard UNIX tools functionality into itself. This means, you only need a crond implementation and the appropriate -runit service for it. Unless you were asking something else I didn't understand.
Title: Re: Timers on runit
Post by: linuxer on 24 August 2020, 22:46:40
Hello guys, recently i go to runit and i am trying to create a service which related with systemd timers.target. Which tool can i use to complete my service?

@nous is correct.

But, besides cronjobs, you may would like to use snooze (https://github.com/leahneukirchen/snooze) which is more or less like timers from AUR (https://aur.archlinux.org/packages/snooze-git)

Please note, that we are not supporting AUR packages, so for any further info/question/trouble, make an issue at the project's (https://github.com/leahneukirchen/snooze) page.
Title: Re: Timers on runit
Post by: nous on 03 September 2020, 19:14:51
Darn, we should import snooze into our repos, yesterday.
Title: Re: Timers on runit
Post by: MadScientist42 on 03 September 2020, 20:45:08
snooze looks...interesting.  And it appeals on a level  with my own projects (Since I "do" runit...).  The problem is, unless you're using runit or s6 in some capacity I can't see how you'd use it.  OpenRC's not really...supervision.
Title: Re: Timers on runit
Post by: nous on 04 September 2020, 12:25:38
OpenRC does have supervision, just not enabled by default. For an example, see /etc/init.d/mariadb-supervise from mariadb-openrc.
Title: Re: Timers on runit
Post by: linuxer on 23 September 2020, 13:20:39
Darn, we should import snooze into our repos, yesterday.

Agree, absolutely .
Title: Re: Timers on runit
Post by: ndowens on 23 September 2020, 15:43:00
Darn, we should import snooze into our repos, yesterday.


Ah I know who is the dev of that; he is a maintainer/dev at Voidlinux. He wrote/writes other stuff and they worked well
Title: Re: Timers on runit
Post by: linuxer on 23 September 2020, 16:11:33

Ah I know who is the dev of that; he is a maintainer/dev at Voidlinux. He wrote/writes other stuff and they worked well

 Indeed
Title: Re: Timers on runit
Post by: linuxer on 24 September 2020, 08:25:31
What @MadScientist42 mentioned is correct.

OpenRC does not offer processes supervising the way that Runit or s6 do, Runit and s6 supervisors all processes straight forward, versus OpenRC where the supervisor is still experimental (https://wiki.gentoo.org/wiki/OpenRC/supervise-daemon)
Title: Re: Timers on runit
Post by: linuxer on 27 October 2020, 23:57:12
Snooze has been added in community (galaxy) repo.

I am closing this issue.