{"id":31747310,"url":"https://github.com/pires/go-systemdmanager","last_synced_at":"2025-10-09T13:29:33.479Z","repository":{"id":312741796,"uuid":"1048361649","full_name":"pires/go-systemdmanager","owner":"pires","description":"A Go library for managing systemd units via D-Bus API.","archived":false,"fork":false,"pushed_at":"2025-09-08T22:33:31.000Z","size":27,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T00:57:09.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pires.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T10:23:32.000Z","updated_at":"2025-09-04T11:58:36.000Z","dependencies_parsed_at":"2025-09-01T19:15:45.105Z","dependency_job_id":"12d46e96-3566-4ae9-8ebb-9256839adeac","html_url":"https://github.com/pires/go-systemdmanager","commit_stats":null,"previous_names":["pires/go-systemdmanager"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pires/go-systemdmanager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fgo-systemdmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fgo-systemdmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fgo-systemdmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fgo-systemdmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pires","download_url":"https://codeload.github.com/pires/go-systemdmanager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fgo-systemdmanager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001485,"owners_count":26083102,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T13:29:24.172Z","updated_at":"2025-10-09T13:29:33.474Z","avatar_url":"https://github.com/pires.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-systemdmanager\n\nA Go library for managing systemd units via D-Bus API with OpenTelemetry instrumentation.\n\n## Overview\n\nThis library provides a clean interface for controlling systemd units through D-Bus, supporting operations like start, stop, restart, uptime monitoring, and real-time status watching. It's designed with observability in mind, featuring comprehensive OpenTelemetry tracing and metrics.\n\n## Features\n\n- **Unit Lifecycle Management**: Start, stop, and restart systemd units\n- **Status Monitoring**: Watch unit status changes in real-time\n- **Uptime Tracking**: Retrieve unit uptime information\n- **Observability**: Built-in OpenTelemetry instrumentation for tracing and metrics\n- **Thread Safety**: Concurrent-safe operations with proper locking\n\n## Usage\n\n```go\nimport \"github.com/pires/go-systemdmanager\"\n\n// Create a new manager\nmgr, err := systemdmanager.New(ctx)\nif err != nil {\n    log.Fatal(err)\n}\n\n// Start a unit\nerr = mgr.Start(ctx, \"my-service.service\")\n\n// Watch for status changes\nupdatesChan := make(chan *dbus.UnitStatus)\ngo mgr.Watch(ctx, \"my-service.service\", updatesChan)\n\n// Get uptime\nuptime, err := mgr.Uptime(ctx, \"my-service.service\")\n```\n\n## Requirements\n\n- Go 1.24+\n- Linux with systemd\n- D-Bus access\n\n## Credits\n\nThis project evolved from:\n\n- [virtual-kubelet/systemk](https://github.com/virtual-kubelet/systemk) - Virtual Kubelet systemd provider\n- [firedancer-io/mirasol](https://github.com/firedancer-io/mirasol) - Solana RPC watchdog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpires%2Fgo-systemdmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpires%2Fgo-systemdmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpires%2Fgo-systemdmanager/lists"}