ginit

command
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 18 Imported by: 0

README

Service ginit

Short summary

The ginit service is the service manager for the Gecholog container. ginit monitors configuration files for changes, manages the start and restart of services and consolidates the Gecholog system log.

Options

Option Description
-a alias, set the name of the service
-o specify filepath to configuration file
--validate print config validation info (accepts stdin)
--version print version

Example

This is how to validate a new config file in the docker context

docker exec gecholog ./ginit -o app/conf/new_ginit_config.json --validate

Configuration file

Example of the configuration file for the ginit service can be found here.

Field Description
log_level one of DEBUG INFO WARN ERROR
max_starts max consecutive attempts to start child service (0 inf)
services array with order child services are started
version the config file conforms to this specification

For each service

Field Description
additional_arguments optional arguments
file child service executable filepath
healthy_output text string in system log to match when healthy
config_command flag for configuration file
configuration_file filepath to configuration file
die_promise kills ginit (and thus container) if unable to start
disable_config_file_monitoring toggle of configuration file monitoring
name child service name in system log
validate_command command to check config file

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL