Categorygithub.com/tuxdude/pico
modulepackage
0.2.3
Repository: https://github.com/tuxdude/pico.git
Documentation: pkg.go.dev

# README

pico

PkgGoDev Build Tests Lint CodeQL Go Report Card

A go library with the core business logic for the picoinit init system, used to manage multiple processes (aka services) within a docker container.

picoinit aims to be a minimal init and multi-service manager for Docker containers written in go.

# Functions

NewInit instantiates a Pico Init/Service Manager combo, performs the necessary initialization for the init responsibilities, launches the pre-hook (if one was specified) and launches the specified list of services.

# Structs

Hook represents the command/script that will be invoked by Init prior to launching the services.
InitConfig is the configuration used by Init.
Service represents the service that will be managed by Init.

# Interfaces

Init manages init responsibility in a system (by reaping processes which get parented to pid 1), and allows launching/managing services (including forwarding signals to them from the process where Init is running).