{"id":19022112,"url":"https://github.com/acavalin/systemd-units","last_synced_at":"2025-07-29T03:34:20.897Z","repository":{"id":179879021,"uuid":"49455793","full_name":"acavalin/systemd-units","owner":"acavalin","description":"Systemd unit files","archived":false,"fork":false,"pushed_at":"2024-10-03T14:50:24.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T07:46:33.225Z","etag":null,"topics":["automation","automounter","disk-encryption","disk-management","logging","readonly-filesystem","systemd","systemd-unit","tmpfs-volume","veracrypt"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acavalin.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,"zenodo":null}},"created_at":"2016-01-11T21:33:52.000Z","updated_at":"2024-10-03T14:50:28.000Z","dependencies_parsed_at":"2023-11-14T00:31:01.262Z","dependency_job_id":"bd8bcfec-ccf0-4246-810a-e9c6e1d0cd9c","html_url":"https://github.com/acavalin/systemd-units","commit_stats":null,"previous_names":["acavalin/systemd-units"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acavalin/systemd-units","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acavalin%2Fsystemd-units","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acavalin%2Fsystemd-units/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acavalin%2Fsystemd-units/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acavalin%2Fsystemd-units/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acavalin","download_url":"https://codeload.github.com/acavalin/systemd-units/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acavalin%2Fsystemd-units/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267623068,"owners_count":24117124,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automation","automounter","disk-encryption","disk-management","logging","readonly-filesystem","systemd","systemd-unit","tmpfs-volume","veracrypt"],"created_at":"2024-11-08T20:24:50.815Z","updated_at":"2025-07-29T03:34:20.867Z","avatar_url":"https://github.com/acavalin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My collection of systemd unit files\n\n## vc-mounter.service / vc-mounter.rb\nMounts VeraCrypt volumes as a specified user (with sudo), runs fsck on them,\nand executes an optional per volume custom ruby script.\n\n## tmpfs-folders.service\nA simple step towards read only root file system to save preciuos disk read/writes.\nMounts /var/log and user homes directories on tmpfs.\nSETUP: create directory skeletons (see instructions in tmpfs-folders.sh)\n\n## spindown-disks.service\nSpind down disks before shutdown\n\n---\n\n# References\n\n## LINKS\n* https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal\n* https://www.google.it/?gws_rd=ssl#q=systemd%20how%20to%20create%20a%20service\n* https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/\n\n## SETUP:\n* `ln -f /opt/systemd-units/name.service /lib/systemd/system/` - **hard link it**\n* `systemctl enable name.service`\n* `systemctl daemon-reload` - **after some changes**\n\n## REFERENCES:\n* http://www.freedesktop.org/software/systemd/man/systemd.service.html\n* http://www.freedesktop.org/software/systemd/man/systemd.unit.html\n* http://www.freedesktop.org/software/systemd/man/systemd.special.html\n* http://www.freedesktop.org/software/systemd/man/bootup.html\n\nNote that `DefaultDependencies = true` implies:\n\n* `Requires  = sysinit.target             `\n* `After     = sysinit.target basic.target`\n* `Conflicts = shutdown.target            `\n* `Before    = shutdown.target            `\n\n## [EARLY START](http://lists.freedesktop.org/archives/systemd-devel/2010-September/000225.html)\n\n```ini\n[Unit]\nDefaultDependencies = no\nRequires  = sysinit.target local-fs.target\nAfter     = sysinit.target local-fs.target\nBefore    = basic.target\n[Install]\nWantedBy  = basic.target\n```\n\n## ONESHOTs: this combination stops the execution of both Start and Stop\n\n```ini\nType = oneshot\nRemainAfterExit = yes\n```\n\n## DEBUG E LOGS:\n* `journalctl`\n* `cat /var/log/boot.log`\n* graphs:\n    * `systemd-analyze plot \u003e boot-chart.svg                       `\n    * `systemd-analyze           dot | dot -Tsvg \u003e boot-full.svg   `\n    * `systemd-analyze --order   dot | dot -Tsvg \u003e boot-order.svg  `\n    * `systemd-analyze --require dot | dot -Tsvg \u003e boot-require.svg`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facavalin%2Fsystemd-units","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facavalin%2Fsystemd-units","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facavalin%2Fsystemd-units/lists"}