{"id":13440068,"url":"https://github.com/nickstenning/undaemonize","last_synced_at":"2026-03-01T11:31:22.694Z","repository":{"id":66096456,"uuid":"81455386","full_name":"nickstenning/undaemonize","owner":"nickstenning","description":"A tiny utility to undaemonize misbehaving programs","archived":false,"fork":false,"pushed_at":"2017-02-09T13:58:43.000Z","size":3,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T04:29:36.689Z","etag":null,"topics":["daemon","linux","system-programming"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nickstenning.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}},"created_at":"2017-02-09T13:56:40.000Z","updated_at":"2021-08-10T22:45:44.000Z","dependencies_parsed_at":"2023-04-18T14:00:25.350Z","dependency_job_id":null,"html_url":"https://github.com/nickstenning/undaemonize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nickstenning/undaemonize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fundaemonize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fundaemonize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fundaemonize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fundaemonize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickstenning","download_url":"https://codeload.github.com/nickstenning/undaemonize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fundaemonize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29968444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T10:55:55.490Z","status":"ssl_error","status_checked_at":"2026-03-01T10:55:55.175Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["daemon","linux","system-programming"],"created_at":"2024-07-31T03:01:19.525Z","updated_at":"2026-03-01T11:31:22.676Z","avatar_url":"https://github.com/nickstenning.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"undaemonize\n===========\n\nThis is a tiny helper utility to force programs which insist on daemonizing\nthemselves to run in the foreground.\n\nIt's like djb's [fghack][1], except it's not a hack, because it makes use of the\n`PR_SET_CHILD_SUBREAPER` flag added to `prctl(2)` in version 3.4 of the Linux\nkernel. To quote [the documentation][2]:\n\n    When a process is marked as a child subreaper, all of the children that it\n    creates, and their descendants, will be marked as having a subreaper.  In\n    effect, a subreaper fulfills the role of init(1) for its descendant\n    processes.  Upon termination of a process that is orphaned (i.e., its\n    immediate parent has already terminated) and marked as having a subreaper,\n    the nearest still living ancestor subreaper will receive a SIGCHLD signal\n    and will be able to wait(2) on the process to discover its termination\n    status.\n\n[1]: https://cr.yp.to/daemontools/fghack.html\n[2]: http://man7.org/linux/man-pages/man2/prctl.2.html\n\nUsage\n-----\n\n    undaemonize foobard -f /etc/foobard.conf\n\nInstallation\n------------\n\n    make\n    sudo install -o root -g root -m 755 undaemonize /usr/local/bin\n\nCaveats\n-------\n\n`undaemonize` does not (currently) forward signals to its child processes. If\nyou kill `undaemonize`, the daemon will not be killed.\n\nLicense\n-------\n\n`undaemonize` is released under the MIT license. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fundaemonize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickstenning%2Fundaemonize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fundaemonize/lists"}