License key

The agent server needs the account's license key to start. The key is supplied through one of two environment variables.

The two variables

# 1. The key itself
$ export SEARCH2O_LICENSE_KEY=your-license-key

# 2. The path to a file that holds the key
$ export SEARCH2O_LICENSE_KEY_FILE=/etc/search2o/license.key

The server takes exactly one of the two: setting both is an error. If neither is set, or the key resolves to an empty value, the server exits at startup.

Rotating the key

An administrator can rotate the license key at any time from the GUI. Running agent servers keep working on the old key for a grace period. Restart them with the new key before the grace period ends. See License rotation.