{"id":20989900,"url":"https://github.com/iddm/sdwd","last_synced_at":"2026-05-18T22:35:03.447Z","repository":{"id":57666448,"uuid":"148785459","full_name":"iddm/sdwd","owner":"iddm","description":"SystemD WatchDog Rust utility crate","archived":false,"fork":false,"pushed_at":"2023-12-05T17:31:06.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T03:19:40.820Z","etag":null,"topics":["crates-io","daemon","rust","systemd","watchdog"],"latest_commit_sha":null,"homepage":null,"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/iddm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"iddm"}},"created_at":"2018-09-14T12:28:58.000Z","updated_at":"2023-12-05T17:31:10.000Z","dependencies_parsed_at":"2023-12-11T11:18:56.689Z","dependency_job_id":"feecb97d-edd5-4fd7-bd5c-21c5593444c9","html_url":"https://github.com/iddm/sdwd","commit_stats":null,"previous_names":["iddm/sdwd","vityafx/sdwd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Fsdwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Fsdwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Fsdwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Fsdwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iddm","download_url":"https://codeload.github.com/iddm/sdwd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243401492,"owners_count":20285052,"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":["crates-io","daemon","rust","systemd","watchdog"],"created_at":"2024-11-19T06:26:38.334Z","updated_at":"2025-12-29T22:33:38.295Z","avatar_url":"https://github.com/iddm.png","language":"Rust","funding_links":["https://github.com/sponsors/iddm"],"categories":[],"sub_categories":[],"readme":"# sdwd\n[![Crates badge](https://img.shields.io/crates/v/sdwd.svg)](https://crates.io/crates/sdwd) \n[![](https://docs.rs/sdwd/badge.svg)](https://docs.rs/sdwd)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\n`sdwd` - SystemD WatchDog crate. Provides simple watchdog notification utilities for easy watchdog\nmanagement.\n\n# Usage\n\n*sdwd-test.service*:\n\n```service\n[Unit]\nDescription=sdwd test daemon\n\n[Service]\nExecStart=sdwd-test\nWatchdogSec=30s\nRestart=on-failure\n```\n\n*src/main.rs*:\n\n```rust\nextern crate sdwd;\n\nfn main() {\n    let recommended_timeout = sdwd::recommended_timeout().unwrap();\n    println!(\"Recommended timeout: {:?}\", recommended_timeout);\n    let _ = sdwd::start_watchdog_thread(recommended_timeout);\n\n    loop {\n        use std::thread;\n        use std::time::Duration;\n        thread::sleep(Duration::from_secs(5));\n        println!(\"Printing this message once in five seconds\");\n    }\n}\n```\n\n## Read about watchdogs\nhttps://www.freedesktop.org/software/systemd/man/systemd.service.html\n\nhttps://www.freedesktop.org/software/systemd/man/sd_watchdog_enabled.html\n\n## License\n\nThis project is [licensed under the MIT license](https://github.com/iddm/sdwd/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiddm%2Fsdwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiddm%2Fsdwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiddm%2Fsdwd/lists"}