Skip to content

Commit

Permalink
feat: Add documentation for installing waymond as a Systemd Service (#30
Browse files Browse the repository at this point in the history
)

* feat: Add documentation for installing waymond as a Systemd Service

* Update install.md

* Update site/docs/getting-started/install.md

---------

Co-authored-by: Vishnu Bharathi <vishnubharathi04@gmail.com>
  • Loading branch information
legosandorigami and scriptnull authored Aug 16, 2024
1 parent 9f37b1e commit 9a7d8ad
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion site/docs/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
## 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```

0 comments on commit 9a7d8ad

Please sign in to comment.