{"id":18046715,"url":"https://github.com/batiati/isrunning-zig","last_synced_at":"2026-04-29T20:32:37.312Z","repository":{"id":81246127,"uuid":"416115045","full_name":"batiati/IsRunning-Zig","owner":"batiati","description":"IsRunning is a very simple and lightweight Windows command-line utility to check if some processes are running or not.","archived":false,"fork":false,"pushed_at":"2021-12-30T16:31:19.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T17:57:01.839Z","etag":null,"topics":["command-line-tool","docker","kubernetes","readiness-probe","windows","zig"],"latest_commit_sha":null,"homepage":"https://github.com/batiati/IsRunning-Zig","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/batiati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-11T23:22:39.000Z","updated_at":"2024-10-08T18:47:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bbed596-48bb-440d-adfe-4badb94ad7f9","html_url":"https://github.com/batiati/IsRunning-Zig","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/batiati/IsRunning-Zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batiati%2FIsRunning-Zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batiati%2FIsRunning-Zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batiati%2FIsRunning-Zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batiati%2FIsRunning-Zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batiati","download_url":"https://codeload.github.com/batiati/IsRunning-Zig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batiati%2FIsRunning-Zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["command-line-tool","docker","kubernetes","readiness-probe","windows","zig"],"created_at":"2024-10-30T19:08:47.293Z","updated_at":"2026-04-29T20:32:37.300Z","avatar_url":"https://github.com/batiati.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IsRunning\n\nIsRunning is a very simple and lightweight Windows command-line utility to check if some processes are running or not.\n\nIt expects a list of process's names as argument and simply exits with code `0` if they were found, or `1` otherwise.\nNo output or message is printed.\n\nUsage:\n\n```CMD\nIsRunning.exe PROCESS_1 [PROCESS_2] [PROCESS_N]\n```\n\n_Examples_\n```CMD\nC:\\\u003e IsRunning.exe traefik.exe\nC:\\\u003e echo %errorlevel%\n0\n```\n\n```CMD\nC:\\\u003e IsRunning.exe traefik.exe node.exe\nC:\\\u003e echo %errorlevel%\n0\n```\n\n```CMD\nC:\\\u003e IsRunning.exe dead.exe\nC:\\\u003e echo %errorlevel%\n1\n```\n\n### Motivation\nIts main purpose is to serve as readiness probe for containers that spawn multiple processes.\n\nFor example, a [Pod readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) to detect if `traefik` is running:\n```yaml\n    readinessProbe:\n      exec:\n        command:\n        - C:/IsRunning.exe\n        - traefik.exe\n      failureThreshold: 3\n      periodSeconds: 5\n      successThreshold: 1\n      timeoutSeconds: 5\n```\n\n\u003e It's not advisable to run multiple processes on a single container, but for many reasons, it's not uncommon, especially for legacy applications in Microsoft Windows containers.\n\n### Why not use batch script?\nI used to use a batch script combining `tasklist` and `find` together:\n\n```CMD\nC:\\\u003e tasklist | find \"traefik.exe\"\nC:\\\u003e echo %errorlevel%\n0\n```\n\nIt works, but it's not the most efficient solution, particularly when you call it every 5 seconds for hundreds of containers.\n\nThis utility saves a little bit of CPU and memory by removing the overhead of `CMD` interpreter and all the string processing between `tasklist` and `find`.\n\nThis utility is implemented in [Zig](https://ziglang.org/), just because we needed a native, small, fast, and secure binary to perform such task.\n\n### Limitations\n\n- Windows only application\n\n- It is optimized for low memory consumption, and only works with ASCII processes names.\n\nPlease, feel free to open an issue or send a PR if you might improve this implementation in some sense.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatiati%2Fisrunning-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatiati%2Fisrunning-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatiati%2Fisrunning-zig/lists"}