Skip to main content

chainmail daemon

Run the chainmail daemon

Usage​

chainmail daemon [flags]

Examples​

# production runs under systemd; a development daemon runs as you
chainmail daemon --dev --config ./config.toml --state-dir ./state --vault-key-file ./vault-key

Flags​

--config string config file (default $CHAINMAIL_CONFIG, then /etc/chainmail/config.toml) (default "/etc/chainmail/config.toml")
--dev development mode: run as yourself with a non-production state directory (default $CHAINMAIL_DEV)
--state-dir string directory for vault.age, state.db and, unless [cache] dir is set, cache.db (default $CHAINMAIL_STATE_DIR, then /var/lib/chainmail) (default "/var/lib/chainmail")
--vault-key-file string age identity file (default $CHAINMAIL_VAULT_KEY_FILE, then $CREDENTIALS_DIRECTORY/vault-key)

Global flags​

--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)

See also​