Edrusb / foregrounder

small C program to live as foreground of a daemon (or set of daemon) that cannot work in foreground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Foregrounder is a small C program to use as foreground of a daemon (or set of daemons) that cannot work in foreground. The main/initial target was to support such daemon (or set of daemons) in a docker container so they can run in background, while foregrounder holds the container alive as process number 1. Upon customer stop request, foregrounder will run the specified command to properly stop the daemons.

Requirements

  • Ansi C compiler (clang, gcc)
  • linker (ld)
  • the "make" program

Compilation

run "make"

Usage

run "./foregrounder"

About

small C program to live as foreground of a daemon (or set of daemon) that cannot work in foreground

License:GNU General Public License v3.0


Languages

Language:C 98.3%Language:Makefile 1.7%