Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joente authored Oct 28, 2024
1 parent 5237f71 commit 793ad40
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Environment | Default | Description
`ASSET_NAME` | _none_ | Initial Asset Name. This will only be used at the announce. Once the asset is created, `ASSET_NAME` will be ignored.
`ASSET_ID` | _none_ | Asset Id _(If not given, the asset Id will be stored and loaded from file)_.
`API_URI` | https://api.infrasonar.com | InfraSonar API.
`SKIP_VERIFY` | _none_ | Set to `1` or something else to skip certificate validation.
`SKIP_VERIFY` | _none_ | Set to `1` or something else to skip certificate validation.
`CHECK_SYSTEM_INTERVAL` | `300` | Interval in seconds for the `system` check.


Expand Down Expand Up @@ -56,16 +56,22 @@ Description=InfraSonar Linux Agent
Wants=network.target
[Service]
Environment="TOKEN=<YOUR TOKEN HERE>"
# Environment="ASSET_ID=<YOUR ASSET ID>"
# Environment="STORAGE_PATH=<PATH_TO_STORE_ASSET_FILE>"
EnvironmentFile="/etc/infrasonar/linux-agent.env"
ExecStart=/usr/sbin/infrasonar-linux-agent
[Install]
WantedBy=multi-user.target
```

Reload systemd
Next, create the file `/etc/infrasonar/linux-agent.env` with at least:

```
TOKEN=<YOUR TOKEN HERE>
```

Optionaly, set environment variable like `ASSET_ID` and `STORAGE_PATH` _(see all [environment variables](#environment_variables) in the table above)_.

When finished, reload systemd:

```bash
$ sudo systemctl daemon-reload
Expand Down

0 comments on commit 793ad40

Please sign in to comment.