Skip to main content

config reload

Reload configuration and apply changes.

Usage​

runix config reload

Description​

Re-reads the runix.yaml config file, validates it, computes a diff against the current config, and applies changes without restarting healthy processes.

Examples​

# Reload config
runix config reload

# No changes detected
# [Runix] No configuration changes detected

# Changes detected
# [Runix] Configuration changes:
# + process "worker" added
# ~ process "api" env.PORT changed: "8080" → "9090"
# [Runix] Configuration reloaded via daemon

Behavior​

  1. Reads the current config from viper state
  2. Re-reads the config file from disk
  3. Validates the new config
  4. Computes a diff between old and new configs
  5. If daemon is running, sends ActionConfigReload IPC
  6. If daemon is not running, changes apply on next start

What Gets Applied​

ChangeAction
New process addedStart the process
Process removedStop and remove the process
Process config changedReload the process
Defaults changedApply on next restart
Cron jobs changedUpdate the scheduler

What's Next​