tinymonitor service¶
Manage the TinyMonitor systemd service (Linux only).
Usage¶
Subcommands¶
install¶
Install and start the systemd service.
| Flag | Description |
|---|---|
-c, --config <path> |
Path to configuration file to use |
If no config is specified, uses /etc/tinymonitor/config.toml.
What it does:
- Creates
/etc/tinymonitor/directory (if needed) - Copies the config file (if specified)
- Creates the systemd service file
- Enables the service to start on boot
- Starts the service
uninstall¶
Stop and remove the systemd service.
What it does:
- Stops the running service
- Disables the service
- Removes the service file
Configuration files are preserved.
status¶
Show current service status.
Output includes:
- Binary location and status
- Configuration file status
- Service status (running/stopped/not installed)
Examples¶
# Install with default config location
sudo tinymonitor service install
# Install with custom config
sudo tinymonitor service install -c /opt/monitoring/config.toml
# Check status
tinymonitor service status
# Remove service (keeps config)
sudo tinymonitor service uninstall
Requirements¶
- Linux only: This command uses systemd
- Root privileges: Required for install/uninstall
Service File Location¶
The service file is created at:
See Also¶
- Running as a systemd Service - Manual setup and advanced options
- Running on macOS - macOS launchd setup