diff --git a/site/docs/getting-started/install.md b/site/docs/getting-started/install.md index 1ac334f..d13be4c 100644 --- a/site/docs/getting-started/install.md +++ b/site/docs/getting-started/install.md @@ -20,4 +20,33 @@ The only way to run waymond right now is waymond -config waymond.toml ``` -But the project is looking to improve the CLI experience. So, please take a look [here](https://github.com/scriptnull/waymond/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Fcli) if you would like to contribute. \ No newline at end of file +## Run as a Systemd Service +After downloading the binary to `/usr/bin` directory, create a new service unit file in the `/etc/systemd/system` directory named `waymond.service`: + +``` +[Unit] +Description=An Awesome Autoscaler Service +After=network.target + +[Service] +ExecStart=/usr/bin/waymond -config /path/to/config/file +WorkingDirectory=/usr/bin +Restart=always +RestartSec=10 +User=your_user +Group=your_group + +[Install] +WantedBy=multi-user.target +``` +Reload the systemd manager configuration to apply the new service: +```sudo systemctl daemon-reload``` + +Enable the service to start on boot: + +```sudo systemctl enable waymond.service``` + +Start the service: + +```sudo systemctl start waymond.service``` +