{"id":18257917,"url":"https://github.com/linkdd/procfusion","last_synced_at":"2025-04-05T15:05:09.912Z","repository":{"id":239934014,"uuid":"801024083","full_name":"linkdd/procfusion","owner":"linkdd","description":"Very simple process manager written in Rust for your Docker images","archived":false,"fork":false,"pushed_at":"2024-10-14T17:05:42.000Z","size":33,"stargazers_count":150,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-29T14:06:52.541Z","etag":null,"topics":["devops","docker","process-manager","rust"],"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/linkdd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["linkdd"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-05-15T12:58:40.000Z","updated_at":"2025-03-22T08:14:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f69eccb-aaf3-4777-9b54-2735c8364542","html_url":"https://github.com/linkdd/procfusion","commit_stats":null,"previous_names":["linkdd/procfusion"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fprocfusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fprocfusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fprocfusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdd%2Fprocfusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkdd","download_url":"https://codeload.github.com/linkdd/procfusion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353729,"owners_count":20925329,"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":["devops","docker","process-manager","rust"],"created_at":"2024-11-05T10:28:08.658Z","updated_at":"2025-04-05T15:05:09.876Z","avatar_url":"https://github.com/linkdd.png","language":"Rust","funding_links":["https://github.com/sponsors/linkdd"],"categories":[],"sub_categories":[],"readme":"# ProcFusion\n\nVery simple process manager for your Docker images.\n\n## Introduction\n\nOne container, one application. That is the mantra we should follow when\ndesigning a container based application.\n\nHowever, one application can sometimes be split into multiple processes.\nWhen that is the case, it can become challenging to manage those processes\nwithin a Docker image.\n\nSolutions like [supervisord](https://supervisord.org) can help, but they come\nwith their own quirks, for example:\n\n - supervisord restart the child processes by default\n - supervisord logs the child process's stdout/stderr to a file by default\n - when redirected to stdout/stderr instead, the logs are mixed and not easily\n   filterable\n\nAlso, requiring Python in your Docker container can be a huge overhead,\nespecially if your application is not written in Python.\n\n*ProcFusion* aims to solve this.\n\n## Features\n\n - start each child process in a process group\n - if SIGINT/SIGTERM/SIGHUP is sent to *ProcFusion*, it forwards it to each\n   child process\n - if a process exits (normally or not), *ProcFusion* sends SIGTERM to every\n   other child process, and exits with the exited process's exit code\n - prefix stdout/stderr of each process with a deterministic label\n\n## Comparison\n\n| Feature | ProcFusion | [Supervisord](https://supervisord.org) | [s6-overlay](https://github.com/just-containers/s6-overlay) | [dumb-init](https://github.com/Yelp/dumb-init) |\n| --- | --- | --- | --- | --- |\n| Process Groups | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Forward signals | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Multiple children | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |\n|  Dependency management | :x: | :x: | :white_check_mark: | :x: |\n| Logs prefixing | :white_check_mark: | :x: | :x: | :x: |\n| Configuration | TOML | INI-like | Service files | Command-line or as shebang |\n| Language (not that it matters) | Rust | Python | Shell | C |\n\n## Installation\n\n```\n$ cargo install --git https://github.com/linkdd/procfusion\n```\n\nOr download the archive from the\n[latest release](https://github.com/linkdd/procfusion/releases/latest).\n\n## Usage\n\n*ProcFusion* expects its configuration as a TOML file:\n\n```toml\n[processes.foo]\ncommand = \"while true; do echo foo; sleep 1; done\"\nshell = \"/bin/sh\"   # Wraps command in '/bin/sh -c'\ndirectory = \"/tmp\"  # Optional, defaults to $PWD\n\n[processes.bar]\ncommand = \"while true; do echo bar; sleep 2; done\"\nshell = \"/bin/sh\"\n\n[processes.baz]\ncommand = \"for i in 1 2; do echo baz; sleep 3; done; exit 1\"\nshell = \"/bin/sh\"\n```\n\nThen run:\n\n```\n$ procfusion path/to/config.toml\n```\n\nThe example above will have the following output:\n\n```\nproc.foo[stdout]   | foo: hello\nproc.bar[stdout]   | bar\nproc.baz[stdout]   | baz\nproc.foo[stdout]   | foo: hello\nproc.bar[stdout]   | bar\nproc.foo[stdout]   | foo: hello\nproc.baz[stdout]   | baz\nproc.foo[stdout]   | foo: hello\nproc.bar[stdout]   | bar\nproc.foo[stdout]   | foo: hello\nproc.foo[stdout]   | foo: hello\ncontroller[stdout] | time=2024-05-15T12:18:50.247868783Z message=\"baz exited with exit status: 1\"\ncontroller[stdout] | time=2024-05-15T12:18:50.248983822Z message=\"bar exited with signal: 15 (SIGTERM)\"\ncontroller[stdout] | time=2024-05-15T12:18:50.249275312Z message=\"foo exited with signal: 15 (SIGTERM)\"\n```\n\n\u003e **NB:** Environment variables are inherited from the *ProcFusion* process.\n\n## License\n\nThis software is distributed under the terms of the\n[MIT License](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdd%2Fprocfusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkdd%2Fprocfusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdd%2Fprocfusion/lists"}