Examples
This section contains real-world examples demonstrating how to use systemg for various use cases. Each example showcases different features and capabilities of systemg.
Hello World
A simple introduction to systemg showing the basics of service management.
Features demonstrated:
- Basic service configuration with the
commanddirective - Environment variable management using both
fileandvars - Restart policies with
restart_policy,retries, andbackoffsettings - Running a simple shell script as a managed service
CRUD Application
A realistic example of a Node.js CRUD web application with database backups and testing.
Features demonstrated:
- Managing a web server as a service
- Scheduling periodic tasks using cron syntax
- Database backup automation
- Rolling deployments with
rolling_start - Webhook notifications for deployment events (success/failure)
- Environment variable management for sensitive configuration