The officially official Devuan Forum!

You are not logged in.

#1 2022-01-14 07:36:59

EDX-0
Member
Registered: 2020-12-12
Posts: 53  

zram service

maybe self plug but, for anyone that wants to use zram in their install i prepared a repo with a service script that does the job, all it needs is zramctl which is part of the util-linux package.

github: https://github.com/eylles/zram-service

gitlab: https://gitlab.com/eylles/zram-service

codeberg: https://codeberg.org/eylles/zram-service

not sure if submitting that to debian or straight up go and try to get it into devuan?

edit: anyone who wants to help adding proper support for openrc and runit?

Last edited by EDX-0 (2022-01-14 08:29:47)

Offline

#2 2022-01-14 07:46:55

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: zram service

id say submit it to devuan first as a .deb

debian already has zram-tools with the required systemd service files.

https://packages.debian.org/bullseye/al … s/filelist

there is also this on the wiki in below link buts its self setup.

https://wiki.debian.org/ZRam

Last edited by hevidevi (2022-01-14 07:57:33)

Offline

#3 2022-01-14 07:55:01

EDX-0
Member
Registered: 2020-12-12
Posts: 53  

Re: zram service

yeh, i know about the wiki entry, in my opinion using perl in an initscript for something that can be done with a simple awk command is rather dumb

for the script in the repo i added a couple extra facilites like restarting and status along loading a config file, u know to facilitate things a little for the folks that do intend to use this.

Offline

#4 2022-01-14 08:00:21

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: zram service

EDX-0 wrote:

for the script in the repo i added a couple extra facilites like restarting and status along loading a config file, u know to facilitate things a little for the folks that do intend to use this.

yeah that is why yours is probably a little more user friendly. Anyway, thanks ill give your script a try.

Offline

#5 2022-01-14 08:06:14

EDX-0
Member
Registered: 2020-12-12
Posts: 53  

Re: zram service

welp, i'm an airhead so the moment i learn to do something i gotta script it, that way i don't need to remember how it is done lol

Offline

#6 2022-01-14 18:44:39

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: zram service

EDX-0 wrote:

not sure if submitting that to debian or straight up go and try to get it into devuan?

Looks like the Debian zram-tools maintainer doesn't care about non-systemd support:

https://bugs.debian.org/cgi-bin/bugrepo … bug=960524

EDX-0 wrote:

anyone who wants to help adding proper support for openrc and runit?

Devuan's runit will use sysvinit scripts. Search the boards if you want a method for setting up proper supervision with runit, it has been covered here before.

For OpenRC see https://github.com/vaeth/zram-init/blob … /zram-init


Brianna Ghey — Rest In Power

Offline

#7 2022-01-15 07:33:56

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: zram service

i found this also if you are interested in looking through it EDX-0, It has some service files for openrc and runit mentioned on the readme.
Not sure if it would port over to devuan as i installed this one on my artixlinux machine that uses openrc init.

https://github.com/atweiden/zramen

Last edited by hevidevi (2022-01-15 07:37:07)

Offline

Board footer