{"id":19704141,"url":"https://github.com/eylles/zram-service","last_synced_at":"2025-04-29T14:31:11.209Z","repository":{"id":130314477,"uuid":"447871339","full_name":"eylles/zram-service","owner":"eylles","description":"a simple zram setup script - alternative to zram tools","archived":false,"fork":false,"pushed_at":"2025-02-17T23:38:55.000Z","size":75,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T17:51:10.557Z","etag":null,"topics":["init-script","initscript","service","systemd","systemd-service","sysvinit","zram","zram-generator","zram-swap"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eylles.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-14T06:56:08.000Z","updated_at":"2025-03-30T07:54:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c37893bc-9436-4e33-bbdf-b679e4c94ebf","html_url":"https://github.com/eylles/zram-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eylles%2Fzram-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eylles%2Fzram-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eylles%2Fzram-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eylles%2Fzram-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eylles","download_url":"https://codeload.github.com/eylles/zram-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518952,"owners_count":21602238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["init-script","initscript","service","systemd","systemd-service","sysvinit","zram","zram-generator","zram-swap"],"created_at":"2024-11-11T21:20:28.086Z","updated_at":"2025-04-29T14:31:06.191Z","avatar_url":"https://github.com/eylles.png","language":"Shell","funding_links":["https://liberapay.com/eylles/donate"],"categories":[],"sub_categories":[],"readme":"# ZRAM service\n\nThis is a simple script compatible to set up zram, it is an alternative\nto [zram-tools](https://github.com/highvoltage/zram-tools) and\n[zramswap](https://aur.archlinux.org/packages/zramswap)\n\nThis script depends on a posix shell interpreter, and core utilities, can\noperate with just busybox if need be.\n\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/eylles/zram-service\" alt=\"GitHub\"\u003e\u003cimg src=\"https://img.shields.io/badge/Github-2B3137?style=for-the-badge\u0026logo=Github\u0026logoColor=FFFFFF\"\u003e\u003c/a\u003e\n\u003ca href=\"https://gitlab.com/eylles/zram-service\" alt=\"GitLab\"\u003e\u003cimg src=\"https://img.shields.io/badge/Gitlab-380D75?style=for-the-badge\u0026logo=Gitlab\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codeberg.org/eylles/zram-service\" alt=\"CodeBerg\"\u003e\u003cimg src=\"https://img.shields.io/badge/Codeberg-2185D0?style=for-the-badge\u0026logo=codeberg\u0026logoColor=F2F8FC\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-GPL--3.0-green.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://liberapay.com/eylles/donate\"\u003e\u003cimg alt=\"Donate using Liberapay\" src=\"https://img.shields.io/liberapay/receives/eylles.svg?logo=liberapay\"\u003e\u003c/a\u003e\n\u003ca href=\"https://liberapay.com/eylles/donate\"\u003e\u003cimg alt=\"Donate using Liberapay\" src=\"https://img.shields.io/liberapay/patrons/eylles.svg?logo=liberapay\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## why ?\n\nLooked at other services and scripts for using zram and they were a mess to be\nhonest, some did too much others too little, this won't be the be all end all of\nzram scripts and setups but so long as it serves most cases i am satisfied.\n\n\n## installation\n\nInstall everything:\n```sh\nsudo make install-all\n```\nthis will provide:\n|component|default location|description|\n|----|----|----|\n|zrs|`/usr/local/sbin/zrs`|script that does the actual work of config parsing and zram setting|\n|zram|`/etc/init.d/zram`|sysvinit initscript|\n|zram.service|`/etc/systemd/system/zram.service`|systemd unit|\n\n\n### install config\n\nEdit the config.mk file to tweak installation options.\n\n#### SysV init script\n\nThis repo provides 2 sysvinit init scripts, a hand written one and one that uses\nDebian's init-d-script framework that provides a Debian and LSB compliant init.d\nscript that may be preferred on some environments, you can choose with the\nconfig.mk file.\n\n## Usage\n\n### sysvinit\n\nThe makefile should put the script in `/etc/init.d/zram` by default, after that\na simple ```sudo update-rc.d zram defaults``` should be enough to activate\nit for the next boot\n\nThe service script supports the start, stop, restart and status actions along\nthe init, end, stat and force-restart aliases.\n\nA simple `sudo service zram start` will initiate the zram service.\n\n\n### systemd\n\nThe makefile should put the unit in `/etc/systemd/system/zram.service` by\ndefault, all you need is run ```sudo systemctl enable zram``` to activate the\nservice for the next boot.\n\nInitiate the service with `sudo systemctl start zram`\n\n\n## TODO\n\n* add debian packaging \"paperwork\"\n* perhaps add an action in the makefile to create a .deb\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feylles%2Fzram-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feylles%2Fzram-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feylles%2Fzram-service/lists"}