Documentation ¶
Index ¶
Constants ¶
View Source
const ( APP = "init-exporter" VER = "0.25.1" DESC = "Utility for exporting services described by Procfile to init system" )
App props
View Source
const ( OPT_PROCFILE = "p:procfile" OPT_APP_NAME = "n:appname" OPT_DRY_START = "d:dry-start" OPT_DISABLE_VALIDATION = "D:disable-validation" OPT_UNINSTALL = "u:uninstall" OPT_FORMAT = "f:format" OPT_NO_COLOR = "nc:no-color" OPT_HELP = "h:help" OPT_VER = "v:version" OPT_VERB_VER = "vv:verbose-version" OPT_COMPLETION = "completion" OPT_GENERATE_MAN = "generate-man" )
Supported arguments
View Source
const ( MAIN_RUN_USER = "main:run-user" MAIN_RUN_GROUP = "main:run-group" MAIN_PREFIX = "main:prefix" PROCFILE_VERSION1 = "procfile:version1" PROCFILE_VERSION2 = "procfile:version2" PATHS_WORKING_DIR = "paths:working-dir" PATHS_HELPER_DIR = "paths:helper-dir" PATHS_SYSTEMD_DIR = "paths:systemd-dir" PATHS_UPSTART_DIR = "paths:upstart-dir" DEFAULTS_NPROC = "defaults:nproc" DEFAULTS_NOFILE = "defaults:nofile" DEFAULTS_RESPAWN = "defaults:respawn" DEFAULTS_RESPAWN_COUNT = "defaults:respawn-count" DEFAULTS_RESPAWN_INTERVAL = "defaults:respawn-interval" DEFAULTS_KILL_TIMEOUT = "defaults:kill-timeout" LOG_ENABLED = "log:enabled" LOG_DIR = "log:dir" LOG_FILE = "log:file" LOG_PERMS = "log:perms" LOG_LEVEL = "log:level" )
Config properties
View Source
const ( // FORMAT_UPSTART contains name for upstart exporting format FORMAT_UPSTART = "upstart" // FORMAT_SYSTEMD contains name for systemd exporting format FORMAT_SYSTEMD = "systemd" )
View Source
const CONFIG_FILE = "/etc/init-exporter.conf"
CONFIG_FILE contains path to config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.