Skip to content

Commit 9a7d8ad

Browse files
feat: Add documentation for installing waymond as a Systemd Service (#30)
* 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 <[email protected]>
1 parent 9f37b1e commit 9a7d8ad

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

site/docs/getting-started/install.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,33 @@ The only way to run waymond right now is
2020
waymond -config waymond.toml
2121
```
2222

23-
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.
23+
## Run as a Systemd Service
24+
After downloading the binary to `/usr/bin` directory, create a new service unit file in the `/etc/systemd/system` directory named `waymond.service`:
25+
26+
```
27+
[Unit]
28+
Description=An Awesome Autoscaler Service
29+
After=network.target
30+
31+
[Service]
32+
ExecStart=/usr/bin/waymond -config /path/to/config/file
33+
WorkingDirectory=/usr/bin
34+
Restart=always
35+
RestartSec=10
36+
User=your_user
37+
Group=your_group
38+
39+
[Install]
40+
WantedBy=multi-user.target
41+
```
42+
Reload the systemd manager configuration to apply the new service:
43+
```sudo systemctl daemon-reload```
44+
45+
Enable the service to start on boot:
46+
47+
```sudo systemctl enable waymond.service```
48+
49+
Start the service:
50+
51+
```sudo systemctl start waymond.service```
52+

0 commit comments

Comments
 (0)