{"id":49437430,"url":"https://github.com/saadnvd1/serviceman","last_synced_at":"2026-04-29T17:15:03.125Z","repository":{"id":353703571,"uuid":"1220582267","full_name":"saadnvd1/serviceman","owner":"saadnvd1","description":"Lightweight process manager with auto-restart, logging, and launchd integration. Single-file Python, zero dependencies.","archived":false,"fork":false,"pushed_at":"2026-04-25T04:18:34.000Z","size":207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T06:20:00.679Z","etag":null,"topics":["cli","daemon","launchd","process-manager","python","zero-dependencies"],"latest_commit_sha":null,"homepage":"https://saadnaveed.com","language":"Python","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/saadnvd1.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":"2026-04-25T04:13:24.000Z","updated_at":"2026-04-25T04:21:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/saadnvd1/serviceman","commit_stats":null,"previous_names":["saadnvd1/serviceman"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/saadnvd1/serviceman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadnvd1%2Fserviceman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadnvd1%2Fserviceman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadnvd1%2Fserviceman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadnvd1%2Fserviceman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saadnvd1","download_url":"https://codeload.github.com/saadnvd1/serviceman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadnvd1%2Fserviceman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["cli","daemon","launchd","process-manager","python","zero-dependencies"],"created_at":"2026-04-29T17:15:02.283Z","updated_at":"2026-04-29T17:15:03.119Z","avatar_url":"https://github.com/saadnvd1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serviceman\n\n\u003e Lightweight process manager with auto-restart, logging, and launchd integration\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"media/demo.png\" width=\"600\"\u003e\n\u003c/p\u003e\n\n## Install\n\n```sh\ngit clone https://github.com/saadnvd1/serviceman.git\ncd serviceman\n./install.sh\n```\n\nMake sure `~/bin` is in your `PATH`.\n\n## Usage\n\n```sh\nsm \u003ccommand\u003e [options]\n```\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `add \u003cname\u003e \"\u003ccmd\u003e\"` | Register a service (`-c` for working dir) |\n| `start \u003cname\u003e` | Start a service |\n| `stop \u003cname\u003e` | Stop a service |\n| `restart \u003cname\u003e` | Restart a service |\n| `status [name]` | Show status (all or specific) |\n| `list` | List all services |\n| `logs \u003cname\u003e` | View logs (`-n` lines, `-f` follow, `--clear`) |\n| `edit \u003cname\u003e` | Modify config (`-c` cmd, `-w` dir) |\n| `enable \u003cname\u003e` | Auto-start on login (macOS launchd) |\n| `disable \u003cname\u003e` | Remove from login items |\n| `remove \u003cname\u003e` | Unregister a service |\n| `start-all` | Start all services |\n| `stop-all` | Stop all services |\n| `restart-all` | Restart all services |\n\n### Examples\n\n```sh\n# Run a web server with auto-restart\nsm add myapp \"npm start\" -c /path/to/project\nsm start myapp\n\n# Check what's running\nsm list\n\n# Follow logs\nsm logs myapp -f\n\n# Start on login\nsm enable myapp\n```\n\n## How it works\n\nSingle Python daemon (`smd`) manages all child processes via a Unix socket. The CLI (`sm`) sends commands to the daemon. Crashed services auto-restart with exponential backoff (1s → 30s). Combined stdout/stderr captured per-service in `~/.serviceman/logs/`.\n\n## Features\n\n- **Auto-restart** on crash with exponential backoff\n- **Combined logging** — stdout and stderr per service\n- **launchd integration** — auto-start on macOS login\n- **Single file**, zero dependencies, Python stdlib only\n\n## Storage\n\nAll state lives in `~/.serviceman/`:\n\n| Path | Contents |\n|------|----------|\n| `services.json` | Service definitions |\n| `pids/` | PID files |\n| `logs/` | Per-service log files |\n\n## Related\n\n- [harry-bot](https://github.com/saadnvd1/harry-bot) - Personal AI assistant that uses serviceman for deployment\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadnvd1%2Fserviceman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaadnvd1%2Fserviceman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadnvd1%2Fserviceman/lists"}