Artix Linux Forum

Init systems => runit => Topic started by: raziel_432 on 04 May 2021, 18:41:00

Title: [SOLVED] zramd on runit?
Post by: raziel_432 on 04 May 2021, 18:41:00
Hello,
I tried installing zramd through AUR, but when I tried to start it with "sv up zramd" I realized there's no such service in /etc/runit/sv
Am I doing something wrong or is zramd a systemd only package?
Is there an alternative for runit and OpenRC?
Title: Re: zramd on runit?
Post by: alium on 04 May 2021, 19:03:10
We support no packages from AUR generally, but in our Universe repo we have zramen ,
How to start zramd you can read in  in https://github.com/maximumadmin/zramd in section "Manual installation on any distribution without systemd".
So the answer is: No, it's not onyl systemd stuff.
Title: Re: zramd on runit?
Post by: raziel_432 on 04 May 2021, 20:20:50
I tried to add
Code: [Select]
[universe]
Server = https://universe.artixlinux.org/$arch
to pacman.conf but now I get an error when updating:
Code: [Select]
error: failed to commit transaction (conflicting files)
plasma-workspace: /usr/share/locale/ta/LC_MESSAGES/kcm_autostart.mo exists in filesystem (owned by plasma-desktop)
Title: Re: zramd on runit?
Post by: calvinh on 04 May 2021, 20:40:29
I tried to add
Code: [Select]
[universe]
Server = https://universe.artixlinux.org/$arch
to pacman.conf but now I get an error when updating:
Code: [Select]
error: failed to commit transaction (conflicting files)
plasma-workspace: /usr/share/locale/ta/LC_MESSAGES/kcm_autostart.mo exists in filesystem (owned by plasma-desktop)


try,

Code: [Select]
$sudo pacman -Syyu --overwrite
Title: Re: zramd on runit?
Post by: raziel_432 on 04 May 2021, 20:47:44
try,

Code: [Select]
$sudo pacman -Syyu --overwrite
Oh, I deleted the file with rm -rf /usr/share/locale/ta/LC_MESSAGES/kcm_autostart.mo
I installed zramen from universe repo, but don't know how to make it autostart with the system.
Title: Re: zramd on runit?
Post by: calvinh on 04 May 2021, 20:59:49
Oh, I deleted the file with rm -rf /usr/share/locale/ta/LC_MESSAGES/kcm_autostart.mo
I installed zramen from universe repo, but don't know how to make it autostart with the system.

You also need zramen-runit. After installation, follow Artix runit wiki. Runit might be the simplest init system on earth.
Title: Re: zramd on runit?
Post by: raziel_432 on 04 May 2021, 21:19:41
You also need zramen-runit. After installation, follow Artix runit wiki. Runit might be the simplest init system on earth.
I installed zramen-runit and enabled the service with:
ln -s /etc/runit/sv/zramen /run/runit/zramen
tried "sv up zramen" but I get file does not exist
I must be doing something wrong.
I guess zramen should be configured but I don't see any instructions on how to do it.
Title: Re: zramd on runit?
Post by: calvinh on 04 May 2021, 21:30:45
should be
Code: [Select]
$sudo ln -s /etc/runit/sv/zramen /run/runit/service/
Title: Re: zramd on runit?
Post by: raziel_432 on 04 May 2021, 21:58:28
should be
Code: [Select]
$sudo ln -s /etc/runit/sv/zramen /run/runit/service/

Oh, I see.
I mistook service for service name. It works now.
Title: Re: zramd on runit?
Post by: linuxer on 06 May 2021, 18:18:23
It's availability was announced at this post (https://forum.artixlinux.org/index.php/topic,2190)

Have fun