Usage
Systemg uses a simple YAML-based configuration and supports the following commands:
Start
Start with the default configuration file:
sysg start
Start with a specific configuration file:
sysg start --config systemg.yaml
Start as a daemon process with a specific configuration file:
sysg start --config systemg.yaml --daemonize
Stop
Stop all services:
sysg stop
Stop a specific service:
sysg stop --service myapp
Restart
Restart with the current configuration:
sysg restart
Restart with a different configuration file:
sysg restart --config new-config.yaml
Status
Show the status of all services:
sysg status
Show the status of a specific service:
sysg status --service webserver
Logs
View the last 50 lines of logs for all services:
sysg logs
View logs for a specific service:
sysg logs api-service
View a custom number of log lines for a service:
sysg logs database --lines 100
⚠️ Note: On Unix-like systems, the logs command is currently not supported.