Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

GongT/init

Repository files navigation

init

Extreme simple /sbin/init for alpine (or anything) in a container.

Features:

  • start multiple process
  • ensure their stdout/stderr does not get jumbled together
  • quit (or, "shutdown system") when:
    • any child process quit
    • receive SIGINT
  • on quit, send signal to all process, and (infinity) wait then to quit
  • no and never have any other feature!!

Config file

/etc/programs

[php-fpm]
arg[]:/opt/prepare-and-run-php-fpm.sh
signal:int

[nginx]
arg[]:/usr/sbin/nginx
arg[]:-g
arg[]:daemon: off;
signal:int

# comment