Skip to content
lollipopkit edited this page May 19, 2023 · 16 revisions

📖 Usage

  1. Install the app on your server.
    • If you have go installed, you can run go install github.com/lollipopkit/server_box_monitor@latest
    • If you don't have go installed, you can download the binary from release page
  2. Edit the config file.
    • The config file is located at ~/.config/server_box/config.json
    • Fully example is here
  3. Run the app.
    • Note: If you download the binary, you need to run ./server_box_monitor
    • There are several ways to run.
      1. (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
        • Rootful
          • Copy file to /etc/systemd/system/srvbox.service
          • Run systemctl enable --now srvbox
      2. Use screen
        • Run: screen -S srvbox, then server_box_monitor
        • Detach: Ctrl + A, then D
        • Reattach: screen -r srvbox
      3. Run server_box_monitor directly
        • It will run in foreground, you can use Ctrl + C to stop it.
Clone this wiki locally