Dans un souci d'apprendre, mais pas d'un besoin immédiat (excepté pour mon portable), j'ai voulu créer un service avec systemd pour zram en suivant le tutorel d'adrien Linuxtricks concernant ce sujet.
Mais malheureusement, il m'est impossible de lancer
zram.service
.Si l'un de vous a le temps d'y jeter un œil, voulez-vous bien me dire ce qui cloche ?
Voici le retour de
systemctl status zram.service
:
● zram.service - Service ZRAM
Loaded: loaded (/etc/systemd/system/zram.service; disabled; vendor preset:>
Active: failed (Result: exit-code) since Sun 2020-09-27 01:02:08 CEST; 36s>
Process: 75233 ExecStart=/usr/local/bin/zram-start (code=exited, status=255>
Main PID: 75233 (code=exited, status=255/EXCEPTION)
sep 27 01:02:08 bruno-kde systemd[1]: Starting Service ZRAM...
sep 27 01:02:08 bruno-kde zram-start[75234]: libkmod: kmod_config_parse: /etc/m>
sep 27 01:02:08 bruno-kde zram-start[75233]: /usr/local/bin/zram-start: ligne 5>
sep 27 01:02:08 bruno-kde zram-start[75233]: /usr/local/bin/zram-start: ligne 7>
sep 27 01:02:08 bruno-kde zram-start[75235]: mkswap: erreur : /dev/zram0 est mo>
sep 27 01:02:08 bruno-kde zram-start[75236]: swapon: /dev/zram0 : échec de swap>
sep 27 01:02:08 bruno-kde systemd[1]: zram.service: Main process exited, code=e>
sep 27 01:02:08 bruno-kde systemd[1]: zram.service: Failed with result 'exit-co>
sep 27 01:02:08 bruno-kde systemd[1]: Failed to start Service ZRAM.
journalctl -xe
:
sep 27 01:05:14 bruno-kde systemd[1]: Failed to start Service ZRAM.
░░ Subject: L'unité (unit) zram.service a échoué
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) zram.service a échoué, avec le résultat failed.
sep 27 01:05:14 bruno-kde audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
sep 27 01:05:14 bruno-kde kernel: kauditd_printk_skb: 6 callbacks suppressed
sep 27 01:05:14 bruno-kde kernel: audit: type=1130 audit(1601161514.262:404): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? a>
lines 1271-1293/1293 (END)
sep 27 01:05:14 bruno-kde systemd[1]: zram.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ An ExecStart= process belonging to unit zram.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 255.
sep 27 01:05:14 bruno-kde systemd[1]: zram.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ The unit zram.service has entered the 'failed' state with result 'exit-code'.
sep 27 01:05:14 bruno-kde systemd[1]: Failed to start Service ZRAM.
░░ Subject: L'unité (unit) zram.service a échoué
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) zram.service a échoué, avec le résultat failed.
sep 27 01:05:14 bruno-kde audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
sep 27 01:05:14 bruno-kde kernel: kauditd_printk_skb: 6 callbacks suppressed
sep 27 01:05:14 bruno-kde kernel: audit: type=1130 audit(1601161514.262:404): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? termina>
lines 1271-1293/1293 (END)
sep 27 01:05:14 bruno-kde systemd[1]: zram.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ An ExecStart= process belonging to unit zram.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 255.
sep 27 01:05:14 bruno-kde systemd[1]: zram.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ The unit zram.service has entered the 'failed' state with result 'exit-code'.
sep 27 01:05:14 bruno-kde systemd[1]: Failed to start Service ZRAM.
░░ Subject: L'unité (unit) zram.service a échoué
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) zram.service a échoué, avec le résultat failed.
sep 27 01:05:14 bruno-kde audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
sep 27 01:05:14 bruno-kde kernel: kauditd_printk_skb: 6 callbacks suppressed
sep 27 01:05:14 bruno-kde kernel: audit: type=1130 audit(1601161514.262:404): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=zram comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[bruno-kde bruno]# cat /proc/swaps
Filename Type Size Used Priority
/dev/sde2 partition 16897020 56312 -2
/dev/zram0 partition 15732420 0 100