-
Notifications
You must be signed in to change notification settings - Fork 20
Home
lollipopkit edited this page May 19, 2023
·
16 revisions
- Install the app on your server.
- If you have
go
installed, you can rungo install github.com/lollipopkit/server_box_monitor@latest
- If you don't have
go
installed, you can download the binary from release page
- If you have
- Edit the config file.
- The config file is located at
~/.config/server_box/config.json
- Fully example is here
- The config file is located at
- Run the app.
- Note: If you download the binary, you need to run
./server_box_monitor
- There are several ways to run.
- (Recommended) Config
systemd
to run the app.- Example service file here
- Rootless
- Copy file to
~/.config/systemd/user/srvbox.service
- Run
systemctl --user enable --now srvbox
- You can run
sudo loginctl enable-linger $USER
to make the service run after logout
- Copy file to
- Rootful
- Copy file to
/etc/systemd/system/srvbox.service
- Run
systemctl enable --now srvbox
- Copy file to
- Use
screen
- Run:
screen -S srvbox
, thenserver_box_monitor
- Detach:
Ctrl + A
, thenD
- Reattach:
screen -r srvbox
- Run:
- Run
server_box_monitor
directly- It will run in foreground, you can use
Ctrl + C
to stop it.
- It will run in foreground, you can use
- (Recommended) Config
- Note: If you download the binary, you need to run