Commit 9fc38c5
LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 mo khan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
README.md
@@ -0,0 +1,43 @@
+# minit
+
+A minimal Procfile-based process supervisor for scratch Docker containers.
+
+## Features
+
+- **No dependencies**: Works in scratch containers without shells
+- **Proper signal handling**: Graceful shutdown like dumb-init
+- **Clean logs**: Streams stdout/stderr without modifications
+- **Process groups**: Ensures all child processes are terminated
+
+## Usage
+
+```bash
+# Build
+go build -o minit cmd/minit/main.go
+
+# Run (reads Procfile from current directory)
+./minit
+```
+
+## Procfile Format
+
+```
+web: ./server -port 8080
+worker: ./worker -queue tasks
+redis: redis-server --port 6379
+scheduler: ./scheduler -interval 60s
+```
+
+## Docker Example
+
+```dockerfile
+FROM scratch
+COPY minit /minit
+COPY Procfile /Procfile
+COPY your-app /your-app
+ENTRYPOINT ["/minit"]
+```
+
+## License
+
+MIT