{"id":24852379,"url":"https://github.com/m-lima/yad","last_synced_at":"2025-03-26T13:40:42.916Z","repository":{"id":57672631,"uuid":"308615372","full_name":"m-lima/yad","owner":"m-lima","description":"Yet Another Daemonizer is a daemonizing crate to easily, simply, and correctly create legacy daemons","archived":false,"fork":false,"pushed_at":"2022-11-15T22:54:10.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T23:54:05.806Z","etag":null,"topics":["daemon","rust","unix"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/m-lima.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}},"created_at":"2020-10-30T11:49:23.000Z","updated_at":"2021-10-22T20:13:10.000Z","dependencies_parsed_at":"2023-01-23T07:45:20.211Z","dependency_job_id":null,"html_url":"https://github.com/m-lima/yad","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lima%2Fyad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lima%2Fyad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lima%2Fyad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lima%2Fyad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lima","download_url":"https://codeload.github.com/m-lima/yad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245665356,"owners_count":20652585,"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":["daemon","rust","unix"],"created_at":"2025-01-31T14:49:28.514Z","updated_at":"2025-03-26T13:40:42.885Z","avatar_url":"https://github.com/m-lima.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yet Another Daemonizer\n[![Github](https://github.com/m-lima/yad/workflows/build/badge.svg)](https://github.com/m-lima/yad/actions?workflow=build)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Cargo](https://img.shields.io/crates/v/yad.svg)](https://crates.io/crates/yad)\n[![Documentation](https://docs.rs/yad/badge.svg)](https://docs.rs/yad)\n\nYet Another Daemonizer is a daemonizing crate to easily, simply, and **correctly** create legacy daemons.\n\nThis crate focuses on manually creating a background process which is not managed by a supervisor such as systemd or launchd. It strives to follow all the best practices to correctly daemonize a process.\n\n\n## Example\n\n\n```rust\nuse yad::Stdio;\n\nmatch yad::with_options()\n    .stdin(Stdio::Null)\n    .stderr(Stdio::Null)\n    .stdout(Stdio::output(\"/var/log/daemon.log\"))\n    .daemonize()\n{\n    Ok(_) =\u003e println!(\"I'm a daemon\"),\n    Err(err) =\u003e eprintln!(\"Failed to launch daemon: {}\", err),\n}\n```\n\n\n## References\n\n - [Man page for daemon()][__link0]\n - [Reference project in C][__link1]\n\n\n [__link0]: https://man7.org/linux/man-pages/man7/daemon.7.html\n [__link1]: https://chaoticlab.io/c/c++/unix/2018/10/01/daemonize.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lima%2Fyad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lima%2Fyad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lima%2Fyad/lists"}