Install Gyroscopic
RAM-only collector. Supported on Linux, FreeBSD, OpenBSD (7.9 and 8.0) and Windows (x86_64). See also the whole-stack setup guide.
1. Download and verify
Binaries live at https://download.solidfokus.com/public/gyroscopic/<platform>/. Platforms: x86_64-linux-glibc, x86_64-linux-musl, x86_64-freebsd-15-static, x86_64-freebsd-15-dynamic, x86_64-freebsd-14-static, x86_64-freebsd-14-dynamic, x86_64-openbsd-8.0, x86_64-openbsd-7.9, x86_64-unknown-windows. FreeBSD binaries are per major (15 and 14; pick the directory matching the major from uname -r). OpenBSD binaries are per release (8.0 and 7.9; pick the directory matching uname -r). Each directory holds the binary gyroscopic-1.12.6-bcd8897 (gyroscopic-1.12.6-bcd8897.exe on Windows) and a .sha256 file in sha256sum format (<hex digest> <file name>).
Linux
P=x86_64-linux-musl # or x86_64-linux-glibc
curl -fLO https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897
curl -fLO https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897.sha256
sha256sum -c gyroscopic-1.12.6-bcd8897.sha256
FreeBSD and OpenBSD builds depend on the OS version: run uname -r and pick the matching build (FreeBSD: the major, 15 or 14; OpenBSD: the release, 8.0 or 7.9).
FreeBSD
P=x86_64-freebsd-15-static # or x86_64-freebsd-15-dynamic; also 14 (x86_64-freebsd-14-static / x86_64-freebsd-14-dynamic). Pick the major from uname -r.
fetch https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897 https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897.sha256
[ "$(sha256 -q gyroscopic-1.12.6-bcd8897)" = "$(cut -d ' ' -f1 gyroscopic-1.12.6-bcd8897.sha256)" ] && echo OK
OpenBSD
P=x86_64-openbsd-8.0 # or x86_64-openbsd-7.9; pick the directory matching uname -r
ftp https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897 https://download.solidfokus.com/public/gyroscopic/$P/gyroscopic-1.12.6-bcd8897.sha256
[ "$(sha256 -q gyroscopic-1.12.6-bcd8897)" = "$(cut -d ' ' -f1 gyroscopic-1.12.6-bcd8897.sha256)" ] && echo OK
Windows
# PowerShell
Invoke-WebRequest https://download.solidfokus.com/public/gyroscopic/x86_64-unknown-windows/gyroscopic-1.12.6-bcd8897.exe -OutFile gyroscopic.exe
Invoke-WebRequest https://download.solidfokus.com/public/gyroscopic/x86_64-unknown-windows/gyroscopic-1.12.6-bcd8897.exe.sha256 -OutFile gyroscopic.exe.sha256
(Get-FileHash gyroscopic.exe -Algorithm SHA256).Hash.ToLower() -eq (Get-Content gyroscopic.exe.sha256).Split(' ')[0]
Install
install -m 0755 gyroscopic-1.12.6-bcd8897 /usr/local/bin/gyroscopic # Linux
install -m 0555 gyroscopic-1.12.6-bcd8897 /usr/local/bin/gyroscopic # FreeBSD / OpenBSD
gyroscopic --version
The service examples below assume /usr/local/bin/gyroscopic.
Published SHA-256 digests for gyroscopic 1.12.6-bcd8897:
| Platform | SHA-256 |
|---|---|
x86_64-linux-glibc | 4817b9ce883c0900073cd59c437ddfb2e0d54ffa443c965ec133e1baa3e8525d |
x86_64-linux-musl | 5e54a0e1ef6aad356ef84e2587cde0ba2b5efe489b6935d842d274d0174bcc62 |
x86_64-freebsd-15-dynamic | 3fd88f516ee1337869d9c16d9e489802797f8adeeb629416185ac619d8e48ce1 |
x86_64-freebsd-15-static | 4f073aa42d61accc2559bf3d81f21c5fe2e1013909ba5d8cbc029e5e9072fd69 |
x86_64-freebsd-14-dynamic | f950c3fd6fb1f42749645925671b7bda17e5b71c17704ae67461a0591df86f83 |
x86_64-freebsd-14-static | fafebbfe09ae702c08e8bdd1060d023f23cab1f69b424200d3b84901ac2d1931 |
x86_64-openbsd-8.0 | 44f0421919e39c25c04276d07a93d83ba8928dde13120cb6d797b6f8e12133e1 |
x86_64-openbsd-7.9 | b07e0c5c9056293194b7f30a8fdf8571703af0fc7bf14b229d0375301fa507ec |
x86_64-unknown-windows | 6c7873956d7093d10e505fa49a80c6352a90f29ac99eccd87fb34de06b049f8c |
2. Generate the config template (first step)
gyroscopic --config with no argument prints the template to stdout and exits; it creates or overwrites no files.
Linux (the service user first, then its config directory; FreeBSD and OpenBSD: see the service section, which uses other paths and owners):
useradd --system --no-create-home --shell /usr/sbin/nologin gyroscopic
install -d -m 0700 -o gyroscopic -g gyroscopic /etc/gyroscopic
gyroscopic --config > /etc/gyroscopic/config.json
chown gyroscopic:gyroscopic /etc/gyroscopic/config.json
chmod 0600 /etc/gyroscopic/config.json
Replace all three secrets in auth. The template values are public placeholders; Gyroscopic only logs a warning if you keep them. If tracerlight_secret and tailfin_secret are both absent the HTTP API needs no auth; if mcp_secret is absent MCP needs no auth. Each secret protects only its own group. Generate a strong secret, for example with openssl rand -base64 32, and use the same value on both sides.
All config options
Every key, with its type, default, valid values and effect, is on Gyroscopic configuration. The keys to set at install: the three auth secrets (above); network.listen_address (keep "127.0.0.1" when everything is on one host, otherwise a private interface); storage.client.count, storage.server.count and both buffer_length values (see Sizing); and endpoints.dump: set it to false for anything exposed. TLS and the allow list: TLS and allow list.
Before starting the service, follow Sizing: ask for the intended client and server counts, interval and retention, show the memory estimate, set count and buffer_length, and check the host's RAM.
Sizing
Records are stored compressed, in RAM only. A restart clears the history, by design. Size for a buffer that has already wrapped. These figures are estimates from a 2026-11-15 test with 1-hour buffers at a 1 s interval, 400 client tags, Gyroscopic 1.12.3-0d480d8, Tracerlight 2.22.0, 8 sessions × 8 pps. The 1-day and 30-day numbers are scaled from that test, not measured at those lengths. Heavier traffic than 8×8 widens records slightly; it does not change the class.
Gyroscopic stores one record per tag per interval. For example, 30 days at 1 s is 2,592,000 records. buffer_length is that number of records, not a number of seconds: set it to retention_seconds / interval_seconds (a whole number). The same buffer_length on client and server tags is the simple choice; servers are cheap.
records = retention_seconds / interval_seconds
estimate =
+ 7 MiB
+ clients × (100 B × records + 109 KiB)
+ servers × (7 B × records + 109 KiB)
worst case =
+ 7 MiB
+ clients × (350 B × records + 109 KiB)
+ servers × (160 B × records + 109 KiB)
The 7 MiB is Gyroscopic with no tags. Each client or server costs its bytes per record times the number of records, plus a fixed 109 KiB for its connection. The worst case uses unmeasured larger per-record sizes (the codec ceilings of 176 B for a client and 80 B for a server, doubled for wrap).
Example: 10 clients and 10 servers, 30 days at 1 s. That is 2,592,000 records per tag. Each client is 100 B × 2,592,000 + 109 KiB, about 0.24 GiB, so 10 clients are about 2.4 GiB. Each server is 7 B × 2,592,000 + 109 KiB, about 18 MiB, so 10 servers are about 180 MiB. Add the 7 MiB for Gyroscopic itself: the total is about 2.6 GiB.
A client tag is one Tracerlight client instance (one client→server pair), not a physical host. A server tag is one Tracerlight server. A useful rule of thumb: about 8.5 MiB per client tag per day at 1 s, or about 0.25 GiB per client tag for 30 days, roughly linear in client tags, retention and 1/interval.
| What | 1 day (1 s interval) | 30 days (1 s interval) | ||
|---|---|---|---|---|
| Estimate | Worst case (unmeasured) | Estimate | Worst case (unmeasured) | |
| One client tag | ~8.5 MiB | ~29 MiB | ~0.25 GiB | ~0.85 GiB |
| One server tag | ~0.7 MiB | ~13 MiB | ~18 MiB | ~0.4 GiB |
| 10 servers + 100 clients | ~0.85 GiB | ~2.9 GiB | ~24 GiB | ~89 GiB |
Before starting the service, an AI agent or operator should:
- Ask, or reuse answers already given: how many Tracerlight client instances (client→server pairs), how many Tracerlight servers, the stats interval (Tracerlight default 1 s), and how long Gyroscopic should keep history. If the operator does not know the retention, propose 8 days (the template default,
buffer_length691200 at 1 s). Eight days is also a good length for a proof of concept. Counts come from the topology; if those are unknown, ask again — do not keep the template 25 client / 5 server slots when the real counts are known. - Compute
buffer_lengthand both the estimate and the worst case. Show the figures in plain language, for example: “For 100 clients and 10 servers, 30 days at 1 s, plan for about 24 GiB (worst case about 89 GiB).” - Set in the config, before starting:
storage.client.countto at least the number of client tags,storage.server.countto at least the number of servers, and bothbuffer_lengthvalues toretention_seconds / interval. - Read the Gyroscopic host's RAM with the commands below (read-only; do not recommend sysctls, kernel tunables or adding swap). Prefer available RAM when the command exists. The estimate must fit in available RAM after leaving at least 1 GiB or 20% of total RAM, whichever is larger, for the OS and anything else on the host. On OpenBSD, where available RAM is harder to read, compare to total with the same margin and ask what else runs there.
- If the estimate does not fit, show a shorter retention that does, ask the operator to accept it, set the new
buffer_length, and only then install. Do not start Gyroscopic on a host that cannot hold the chosen buffer.
| OS | Total | Available |
|---|---|---|
| Linux | awk '/MemTotal:/ {print $2}' /proc/meminfo (KiB) | awk '/MemAvailable:/ {print $2}' /proc/meminfo (KiB) |
| FreeBSD | sysctl -n hw.physmem (bytes) | pagesize=$(sysctl -n hw.pagesize); echo $(( ($(sysctl -n vm.stats.vm.v_free_count) + $(sysctl -n vm.stats.vm.v_inactive_count) + $(sysctl -n vm.stats.vm.v_cache_count)) * pagesize )) (bytes) |
| OpenBSD | sysctl -n hw.physmem (bytes) | Ask the operator what is free, or compare to total with the same margin |
| Windows (PowerShell) | (Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory (bytes) | (Get-CimInstance Win32_OperatingSystem).FreePhysicalMemory (KiB) |
More tags than slots: when count is reached, only new tags are rejected (HTTP 503 with Retry-After, error “storage full for tag”); existing tags keep working. Nothing is queued; the sender retries. A slot frees only when a tag is evicted after idle_timeout (with 0 it never frees). Size count for all your tags.
Command-line flags
| Flag | Default | Meaning |
|---|---|---|
| --config [PATH] | Config file; with no path prints the template and exits. | |
| --log-format | pretty | pretty or json; logs go to stdout, level via RUST_LOG. |
| --tls-info | Print the self-signed certificate path and SHA-256 fingerprint and exit, without serving or creating anything (no certificate yet at <path> before the first start). New in 1.12.0. | |
| --license | Print license and exit. | |
| -h / -V | Help / version. |
3. Firewall and exposure
Never expose Gyroscopic directly to the Internet. Keep it on 127.0.0.1 when everything is on one host. Otherwise bind it to a private interface and allow TCP 3000 only from Tracerlight clients, the Tailfin host and NGINX; allow 3101 (MCP) only from NGINX or your MCP clients.
# pf example: only the private net may reach the API
pass in on em1 proto tcp from 10.0.0.0/24 to any port 3000FreeBSD: if pf is enabled, add these rules; if no firewall is running, skip this step.
OpenBSD: pf is enabled by default and blocks inbound traffic. Put the pass rule above the block line in /etc/pf.conf, replace em1 with the host's real interface, and reload with pfctl -f /etc/pf.conf.
4. NGINX with TLS (optional)
Gyroscopic 1.12.0 can serve TLS itself (see TLS and allow list); NGINX remains a fully supported option, for example for a public certificate or a private company CA. With NGINX in front keep "tls": "off" in Gyroscopic. NGINX is needed only when Tracerlight, Tailfin or MCP clients reach Gyroscopic from other hosts over untrusted links. Browsers never talk to Gyroscopic. For the full-stack front end (collect, API, MCP and the dashboard; NGINX normally on a separate host) see Deploy option 2, NGINX, which also says where the file goes on Linux and FreeBSD.
upstream gyroscopic { server 127.0.0.1:3000; keepalive 32; }
upstream gyroscopic_mcp { server 127.0.0.1:3101; keepalive 32; }
server {
listen 80;
server_name stats.example.net;
location /.well-known/acme-challenge/ { root /var/www/letsencrypt; }
location / { return 301 https://$host$request_uri; }
}
server {
listen 443 ssl;
http2 on; # needs nginx 1.25.1+; on older nginx (Ubuntu 24.04 has 1.24) use "listen 443 ssl http2;" and drop this line
server_name stats.example.net;
ssl_certificate /etc/letsencrypt/live/stats.example.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/stats.example.net/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
client_max_body_size 1k;
client_body_timeout 10s;
location = /health { proxy_pass http://gyroscopic; }
location /api/v1/ {
proxy_read_timeout 12s; # >= request_timeout_secs
proxy_send_timeout 12s;
proxy_pass http://gyroscopic;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# MCP (only if mcp.enabled = true). No trailing slash on /mcp.
location /mcp {
proxy_pass http://gyroscopic_mcp;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_buffering off;
proxy_cache off;
# allow 203.0.113.0/24; deny all; # recommended
}
}
Set "dump": false under endpoints when exposed.
TLS and allow list (1.12.0, optional)
Both are optional and off by default; a config without the new keys keeps serving plain HTTP. Each listener (network and mcp) has its own tls, tls_names and allow.
Turn on self-signed TLS
- Install the service setup from section 6 first: it creates the parent folder that the service account may write (systemd
StateDirectory, the rc.dinstall -dline, or--install-serviceon Windows). Hosts upgraded from an earlier version need the new unit or script. - Set
"tls": "self-signed"on the listener(s). If clients use a LAN name or IP that is not a concrete bind address, add it totls_names; a0.0.0.0or[::]bind does not cover LAN addresses. - Restart the service. On the first start the app creates the folder,
cert.pem(0644) andkey.pem(0600, protected DACL on Windows) by itself, and reuses them forever. Keep foreground tests on"tls": "off"so the service account, not you, creates the files. - Read the fingerprint from the start-up log or with
gyroscopic --config <file> --tls-info, and put it in the clients (below).
"network": { "listen_address": "[::]", "port": 3000, "tls": "self-signed",
"tls_names": ["192.168.1.10", "gyro.example.lan"],
"allow": ["127.0.0.1", "::1", "192.168.1.0/24"] }
# start-up log
tls self-signed listener=http cert=/var/lib/gyroscopic/tls/cert.pem sha256=<64 hex> generated=true
# any time, without serving
gyroscopic --config /etc/gyroscopic/config.json --tls-info
tls self-signed cert=/var/lib/gyroscopic/tls/cert.pem sha256=<64 hex>
# OpenBSD: curl is not in base; run pkg_add curl first
# FreeBSD / OpenBSD: use --cacert /var/db/gyroscopic/tls/cert.pem
curl --cacert /var/lib/gyroscopic/tls/cert.pem https://localhost:3000/health
Where the certificate is
| OS | Folder (holds cert.pem, key.pem) | Parent created by |
|---|---|---|
| Linux | /var/lib/gyroscopic/tls | systemd StateDirectory=gyroscopic (section 6) |
| FreeBSD / OpenBSD | /var/db/gyroscopic/tls | the install -d line in the rc.d script (section 6) |
| Windows | %ProgramData%\solidfokus\gyroscopic-tls | --install-service gyroscopic |
tls_dir in the config overrides the folder. The certificate is ECDSA P-256, valid 20 years, with the names localhost, the hostname, 127.0.0.1, ::1, the bind addresses and tls_names. The fingerprint is the SHA-256 of the certificate, 64 lowercase hex characters. Windows: one service per app gets the folder and its grants (BUILTIN\Users read, so any user can read cert.pem; the service account modify). A second service name must set its own tls_dir, created and granted modify by an admin. Uninstall keeps the files.
Your own certificate
"tls": {"cert": "/path/fullchain.pem", "key": "/path/privkey.pem"} (e.g. Let's Encrypt). Read at start: restart after a renewal. Clients need no pin for a public certificate. There is no CA-file option; for a private company CA put Gyroscopic behind NGINX (section 4).
Clients
- Tracerlight 2.20.0 or later:
"url": "https://…:3000/api/v1/collect"and"tls_sha256": "<fingerprint>"in its telemetry config (details). - Tailfin 0.30.0 or later:
"gyroscopic_url": "https://…:3000/api/v1"and"gyroscopic_tls_sha256": "<fingerprint>"(details). - OpenCode and other Node-based MCP clients: trust the file itself, e.g.
opencode service set env NODE_EXTRA_CA_CERTS /var/lib/gyroscopic/tls/cert.pem(FreeBSD, OpenBSD:/var/db/gyroscopic/tls/cert.pem; Windows:%ProgramData%\solidfokus\gyroscopic-tls\cert.pem), or setNODE_EXTRA_CA_CERTSin the environment that starts the client. The MCP URL host must belocalhost, the hostname, a bind address or atls_namesentry. Because the file then acts as a CA for that process, keepkey.pemprivate. - Pins are for self-signed only. A wrong pin fails with
certificate fingerprint mismatch: expected <pin>, got <actual>. - Public or company certificate (your own PEM files, or NGINX): clients leave the pin out. From Tracerlight 2.20.2 / Tailfin 0.30.5 they verify it against their host's OS CA store, so a company CA must be installed in that store and the host needs a CA bundle (Tracerlight, Tailfin, troubleshooting).
Regenerate the certificate
Stop the service, delete both cert.pem and key.pem, start it again (also needed to change names, which are fixed at creation). The fingerprint changes: update every Tracerlight tls_sha256, the Tailfin gyroscopic_tls_sha256, and any copy of cert.pem used through NODE_EXTRA_CA_CERTS, then restart those clients.
Allow list
"allow": []permits everyone. A non-empty list permits only matching peers: bare addresses or CIDRs, IPv4 or IPv6. There is no deny list.- It checks the TCP peer address only;
X-Forwarded-Forand similar headers are ignored. Behind NGINX the peer is NGINX. - It applies to localhost too: with a non-empty list add
127.0.0.1and::1, or local tools and a co-hosted Tailfin are dropped. - Dropped connections are closed without a reply and logged only at debug (
allow list dropped connection peer=…); setRUST_LOG=debugto see them. - IPv4 and
[::]: from 1.12.1 a[::]bind accepts IPv4 and IPv6 on every OS (Gyroscopic opens[::]IPv6-only plus0.0.0.0on the same port; logStarting server on [::]:3000 (IPv4 and IPv6)); the same applies tomcp.listen_address.0.0.0.0is IPv4 only. On a host with IPv6 disabled use0.0.0.0, because[::]stops withcannot bind … (IPv6 half of [::]:3000). 1.12.0 on FreeBSD, OpenBSD and Windows served[::]IPv6 only: upgrade (details). - For IPv6 write
[::](brackets); a bare::fails withinvalid listen address.
When a listener has its own secret, TLS off and a non-loopback bind, Gyroscopic warns Basic auth on <http|mcp> is unencrypted. Errors and fixes: Troubleshooting, TLS.
5. MCP for AI assistants
Enable with "mcp": {"enabled": true} and set auth.mcp_secret. Endpoint: http://127.0.0.1:3101/mcp locally, or https://stats.example.net/mcp through NGINX. Transports: Streamable HTTP (POST/GET /mcp) and legacy SSE (GET /mcp/sse). Auth: HTTP Basic, user mcp. Read-only unless allow_collect is true. From 1.12.4, a client that sends MCP-Protocol-Version: 2025-11-25 (for example Hermes) completes the handshake; Gyroscopic still answers 2025-06-18. Client setup is described in the setup guide.
What an assistant can do over MCP
The MCP server offers 17 tools. Read-only tools let an assistant: list active tags; read the newest, oldest or a specific range of records; look up a time window; find counter jumps; get status totals and snapshots; get a fleet overview and a worst-first health triage; find episodes (for example loss runs), tags that showed the same symptom at the same time, and patterns across the whole retention; fetch chart series; dump a tag (only if endpoints.dump is on); and read a reference describing what the fields mean. One tool writes data and is off unless allow_collect is true.
6. Run as a service
Linux (systemd)
Tested on Ubuntu 24.04 (2026-11-25) with Gyroscopic 1.12.5-0ff14a6: this unit (enable, start, stop), /health, and Tracerlight and Tailfin connected. Start at boot tested on Ubuntu 24.04 (2026-11-26).
The user gyroscopic and /etc/gyroscopic (owner gyroscopic, 0700; config 0600) come from section 2. If you created the config before the user, fix ownership:
id gyroscopic || useradd --system --no-create-home --shell /usr/sbin/nologin gyroscopic
chown -R gyroscopic:gyroscopic /etc/gyroscopic
/etc/systemd/system/gyroscopic.service:
[Unit]
Description=Gyroscopic statistics collector
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=gyroscopic
Group=gyroscopic
ExecStart=/usr/local/bin/gyroscopic --config /etc/gyroscopic/config.json --log-format json
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=gyroscopic
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
StateDirectory=gyroscopic
StateDirectoryMode=0755
AmbientCapabilities=
CapabilityBoundingSet=
[Install]
WantedBy=multi-user.target
systemctl daemon-reload && systemctl enable --now gyroscopic
journalctl -u gyroscopic -f
FreeBSD (rc.d)
Tested on FreeBSD 15.1 (2026-11-23) with Gyroscopic 1.12.5-0ff14a6: the user and config setup, this script, start and stop, /health, and the privilege drop to gyroscopic. Tested on FreeBSD 15.1 (2026-11-26): start at boot and a forced log rotation (newsyslog -F). Not yet tested: the daily scheduled rotation.
Create the user, the config directory and the config. The app reads the config after the privilege drop, so it is owned by root:gyroscopic with mode 0640 (on Linux it is 0600 and owned by the service user). pw useradd creates a same-named primary group and no home directory. The binary is installed in step 1.
pw useradd gyroscopic -c "Gyroscopic" -d /nonexistent -s /usr/sbin/nologin
install -d -m 0750 -o root -g gyroscopic /usr/local/etc/gyroscopic
gyroscopic --config > /usr/local/etc/gyroscopic/config.json
chown root:gyroscopic /usr/local/etc/gyroscopic/config.json
chmod 0640 /usr/local/etc/gyroscopic/config.json
/usr/local/etc/rc.d/gyroscopic (mode 0555, owner root):
#!/bin/sh
#
# PROVIDE: gyroscopic
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# rc.conf(5) variables:
# gyroscopic_enable (bool) Default: "NO"
# gyroscopic_config (path) Default: /usr/local/etc/gyroscopic/config.json
# gyroscopic_runas (str) Default: gyroscopic (passed to daemon(8) -u)
# gyroscopic_log (path) Default: /var/log/solidfokus/gyroscopic.log
# gyroscopic_umask (str) Default: 022 (rc.subr umask for daemon(8); keeps -M 0640)
# gyroscopic_env (str) No default. Passed to env(1); use it for RUST_LOG
#
# Do NOT set gyroscopic_user. rc.subr(8) starts $command via "su -m".
# The account shell is /usr/sbin/nologin, so su execs nologin and exits.
# If the shell can run the command, daemon(8) is not root and "daemon -u"
# fails with "failed to set user environment".
# Do NOT set gyroscopic_flags: rc.subr puts them right after $command, so
# they would be parsed by daemon(8), not by gyroscopic.
# The script unsets both after load_rc_config and warns. A custom gyroscopic_log is kept.
#
# daemon(8) flags:
# -r : Restart the child one second after an unexpected exit
# -f : Point the supervisor's stdin, stdout and stderr at /dev/null
# -P : Write the supervisor pid (use with -r; the child pid changes)
# -H : Reopen the output log on SIGHUP
# -o : Append the child's output to this log file
# -M : Mode used when the log file is created
# -M is in FreeBSD 14.5 and 15.1 and later. It is not in 13.x,
# 14.0-14.4, or 15.0; on those releases delete "-M 0640" from
# command_args and the log is created mode 0600 until newsyslog
# rotates it.
# -u : Run the child as this user; the supervisor stays root
. /etc/rc.subr
name="gyroscopic"
rcvar="gyroscopic_enable"
load_rc_config $name
# rc.subr consumes these two names. Clear them so a leftover rc.conf
# line cannot start daemon(8) via su(1) or hand daemon(8) the flags.
if [ -n "${gyroscopic_user-}" ]; then
warn "gyroscopic_user is ignored; rc.subr would su(1) to it and daemon -u would fail. Use gyroscopic_runas."
unset gyroscopic_user
fi
if [ -n "${gyroscopic_flags-}" ]; then
warn "gyroscopic_flags is ignored; rc.subr would pass it to daemon(8), not to gyroscopic."
unset gyroscopic_flags
fi
: ${gyroscopic_enable:="NO"}
: ${gyroscopic_config:="/usr/local/etc/gyroscopic/config.json"}
: ${gyroscopic_runas:="gyroscopic"}
: ${gyroscopic_log:="/var/log/solidfokus/gyroscopic.log"}
: ${gyroscopic_umask:="022"}
pidfile="/var/run/${name}.pid"
procname="/usr/sbin/daemon"
command="/usr/sbin/daemon"
command_args="-r -f -P ${pidfile} -H -o ${gyroscopic_log} -M 0640 -u ${gyroscopic_runas} /usr/local/bin/gyroscopic --config ${gyroscopic_config} --log-format json"
required_files="${gyroscopic_config}"
start_precmd="${name}_prestart"
gyroscopic_prestart()
{
install -d -m 0755 -o root -g wheel "${gyroscopic_log%/*}"
# self-signed TLS folder (1.12.0); the app creates cert.pem and key.pem in it
install -d -m 0755 -o ${gyroscopic_runas} -g ${gyroscopic_runas} /var/db/gyroscopic/tls
}
run_rc_command "$1"
Install with install -m 0555 gyroscopic /usr/local/etc/rc.d/.
/etc/rc.conf:
gyroscopic_enable="YES"
# gyroscopic_config="/usr/local/etc/gyroscopic/config.json"
# gyroscopic_env="RUST_LOG=info"
Enable and start:
sysrc gyroscopic_enable=YES
service gyroscopic start
service gyroscopic status
sockstat -4 -l -P tcp -p 3000 # USER column must read: gyroscopic
tail -f /var/log/solidfokus/gyroscopic.log
Notes (checked against FreeBSD 15.1 rc.subr(8), rc.conf(5), su(1) and daemon(8)):
- Do not set
gyroscopic_user. rc.subr would start daemon through su(1); the account shell is nologin, and even if it ran,daemon -ufails because the supervisor is not root. The user for the privilege drop isgyroscopic_runas. - Do not set
gyroscopic_flags. rc.subr puts them right after$command, so daemon(8) would parse them, not gyroscopic. The script unsets a leftover_useror_flagsafterload_rc_configand warns. - Logging level: set
gyroscopic_env="RUST_LOG=info"in rc.conf. rc.subr passes${name}_envto env(1) in front of daemon(8). Do not put RUST_LOG incommand_args; that hands it to daemon(8). - Privilege drop and pid file: the daemon(8) supervisor stays root, runs gyroscopic as
gyroscopicvia-u, and writes its own pid to/var/run/<name>.pid(-P). rc.subr matches it againstprocname=/usr/sbin/daemon, sostatusandstopwork. Stop sends SIGTERM to the supervisor, which forwards it and waits. - Log file: the root supervisor creates the log root-owned with mode 0640 (
-M 0640);-Hreopens it on SIGHUP from newsyslog.daemon -Mis in FreeBSD 14.5 and 15.1 and later. It is not in 13.x, 14.0–14.4, or 15.0; on those releases delete-M 0640fromcommand_argsand the log is created mode 0600 until newsyslog rotates it.open(2)applies the umask, so the script setsgyroscopic_umask(default022), which keeps 0640 at boot and from a shell with umask 077.-Mdoes not change a file that already exists. - Check the drop:
sockstat -4 -l -P tcp -p 3000; the USER column must readgyroscopic.
Migrating from an earlier script
Stop the running service before replacing the script. The new pid file is /var/run/gyroscopic.pid. The previous script wrote /var/run/gyroscopic/gyroscopic.pid. After the swap, service gyroscopic restart does not see the old supervisor, the new process fails to bind port 3000, and -r restarts it every second.
- With the old script still installed, run
service gyroscopic stop. - Install the new script over
/usr/local/etc/rc.d/gyroscopic. - In
/etc/rc.conf, removegyroscopic_userandgyroscopic_flags. Removegyroscopic_group; it is unused. Keepgyroscopic_logwhen it is not the default path, and point the newsyslog entry at that same path. Setgyroscopic_runasonly to run as a user other thangyroscopic. The script unsetsgyroscopic_userandgyroscopic_flagsif they are still present, and warns. - Remove the old run directory:
rm -rf /var/run/gyroscopic - Delete
/etc/newsyslog.conf.d/gyroscopic.confif it exists. Append the 7. Logging section line to/usr/local/etc/newsyslog.conf.d/solidfokus.conf(create the file if it is absent). Do not replace that file: Gyroscopic, Tailfin, and Tracerlight share it, and replacing it drops the other services. Two entries for the same log rotate it twice per cycle. The pid file is/var/run/gyroscopic.pid. service gyroscopic start, then check withsockstatas above.
Side-by-side or test instance: the script hardcodes the binary path /usr/local/bin/gyroscopic in command_args (the program daemon(8) starts). When you copy or rename the script for a second instance, for example to test a new version next to the running one, also change that path to the new binary; otherwise the copy runs the old binary. Check with ps -ax -o command | grep gyroscopic.
OpenBSD (rc.d)
Tested on OpenBSD 7.9 and 8.0 (2026-11-26) with 1.12.5-0ff14a6: install, the user and config setup, this script and the syslog.conf block, rcctl enable, start and check, start at boot, the pf rule (section 3), the Verify steps (section 8), self-signed TLS with a pinned Tracerlight client (8.0) and an upgrade (8.0). Not tested: MCP, NGINX and RUST_LOG through the login class. Log rotation was tested on 2026-11-27 (section 7).
Tested on OpenBSD 8.0: the script below, including the syslog.conf block, works verbatim with Gyroscopic 1.12.0, including TLS and the allow list (verified 2026-11-02; earlier also 1.11.7). Written against the current OpenBSD rc.subr(8), rcctl(8), syslogd(8), newsyslog(8) and login.conf(5) sources.
rc.subr starts the process as daemon_user through su(1). The config is root:_gyroscopic mode 0640, the same rule as FreeBSD:
groupadd _gyroscopic
useradd -c "Gyroscopic Daemon" -d /nonexistent -g _gyroscopic -s /sbin/nologin _gyroscopic
install -d -m 0750 -o root -g _gyroscopic /etc/gyroscopic
install -m 0640 -o root -g _gyroscopic config.json /etc/gyroscopic/config.json
install -d -m 0755 -o root -g wheel /var/log/solidfokus
install -m 0640 -o root -g wheel /dev/null /var/log/solidfokus/gyroscopic.logOutput goes through syslog, because a restart would discard the collector's in-memory data and syslogd can reopen its file on SIGHUP. Put this block at the top of /etc/syslog.conf (!! keeps later rules from also matching), then rcctl restart syslogd. syslogd only appends to files that already exist, which is why the log is created above.
!!gyroscopic
*.* /var/log/solidfokus/gyroscopic.log
!*/etc/rc.d/gyroscopic (install -m 0555):
#!/bin/ksh
#
# Output is piped to logger(1) (daemon_logger) and syslogd writes it to
# /var/log/solidfokus/gyroscopic.log (see the /etc/syslog.conf block).
# RUST_LOG: /etc/login.conf.d/gyroscopic (section 7 Logging).
daemon="/usr/local/bin/gyroscopic"
daemon_flags="--config /etc/gyroscopic/config.json --log-format json"
daemon_user="_gyroscopic"
daemon_logger="daemon.info"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
_log="/var/log/solidfokus/gyroscopic.log"
rc_pre() {
install -d -m 0755 -o root -g wheel /var/log/solidfokus
# self-signed TLS folder (1.12.0); the app creates cert.pem and key.pem in it
install -d -m 0755 -o _gyroscopic -g _gyroscopic /var/db/gyroscopic/tls
if [ ! -f "${_log}" ]; then
install -m 0640 -o root -g wheel /dev/null "${_log}"
[ -f /var/run/syslog.pid ] && kill -HUP "$(cat /var/run/syslog.pid)"
fi
return 0
}
rc_cmd $1How rcctl start returns for this non-forking daemon: this is the idiom OpenBSD ports use for foreground daemons (rc_bg=YES after sourcing rc.subr). rc_exec runs the command under su(1) in a shell with set -o monitor, so the daemon (and any logger pipeline) gets its own process group. A watcher polls rc_check (pgrep -xf "${pexp}") and, once the daemon is up, sends SIGALRM to that shell. The shell dies, rc_start returns 142 (counted as success), and the daemon keeps running, detached. rcctl check/stop match it by ${daemon} ${daemon_flags}. The redirection is not part of the process arguments, so it does not affect that match.
rcctl enable gyroscopic && rcctl start gyroscopic && rcctl check gyroscopic
tail -f /var/log/solidfokus/gyroscopic.log- Log lines: each line has a syslog header before the JSON, e.g.
Oct 23 14:00:00 host gyroscopic[4711]: {...}; strip up to the first{before parsing. logger(1) splits lines over 1023 bytes. - Logging level: rc.conf.local has no
_envvariable on OpenBSD. Create/etc/login.conf.d/gyroscopic(below); rc.subr uses that login class and su(1) sets the variable. If/etc/login.conf.dbexists, rebuild it with cap_mkdb as login.conf(5) describes. Restart the service.
gyroscopic:\
:setenv=RUST_LOG=info:\
:tc=daemon:Side-by-side or test instance: the script hardcodes the binary path in daemon="/usr/local/bin/gyroscopic". When you copy the script under another name for a second instance, for example to test a new version, also change daemon= to the new binary; otherwise the copy runs the old binary. Check with ps -ax -o command | grep gyroscopic.
Migrating from an earlier OpenBSD script
The earlier script could not create its log as _gyroscopic, used ${_bg} and a newsyslog.conf.d file OpenBSD never reads, and kept the config service-owned 0600. Run rcctl stop gyroscopic, install the new script, run the install lines above for the config and log, add the syslog.conf block and restart syslogd, delete /etc/newsyslog.conf.d/gyroscopic.conf, add the section 7 line to /etc/newsyslog.conf, then rcctl start gyroscopic.
Windows (native service)
The Windows service support is new in 1.11.0. The service has been tested on real Windows 11 with 1.11.8 (install, restart actions, automatic restart after the process was killed), and with 1.12.0 on Windows 11 build 26200 on 2026-11-02, including the TLS folder created at install, the self-signed certificate and uninstall. Also tested on Windows Server 2022 (2026-11-26) with 1.12.5-0ff14a6: install from the template config, --install-service gyroscopic, the icacls step, start, /health and --uninstall-service.
Processes started from an interactive Windows OpenSSH session are killed when the session closes; for anything that must keep running use --install-service.
The binary registers itself with the Service Control Manager; no WinSW or NSSM. The .exe links the C runtime statically, so no Visual C++ Redistributable is needed. Run everything in an elevated PowerShell.
| Option (Windows only) | Meaning |
|---|---|
--install-service <NAME> | Create service NAME that runs this .exe with the other arguments on the command line, plus --service <NAME>. Automatic start, depends on Tcpip, account NT SERVICE\<NAME>; after a failure it restarts after 5 s, 10 s, then every 60 s. Does not start the service. From 1.11.1: if a setting cannot be applied, the service is removed again and the command fails. Elevated prompt. |
--uninstall-service <NAME> | Stop the service, wait up to 30 s until it has stopped, then delete it; if it does not stop, nothing is deleted and the command fails. From 1.11.4: before deleting, it removes the account's access to the log directory (while NT SERVICE\<NAME> still resolves); if that fails, the service is left registered and stopped and the command fails with the icacls command to run, so fix it and uninstall again. Logs are kept. |
--service <NAME> | Run under the Service Control Manager; set by the installer. |
--log-file <PATH> | Append logs to PATH instead of the console. From 1.11.4, with --install-service its directory must be the default %ProgramData%\solidfokus\logs or a new directory inside %ProgramData% that the install creates; an existing one is rejected. |
As a service, the log goes to %ProgramData%\solidfokus\logs\<NAME>.log, rotated above 10 MiB to .1….5 (checked every 30 s, no restart, so the in-memory data is kept). Stop-Service, system shutdown and reboot take the graceful Ctrl+C path. From 1.11.9 the service accepts preshutdown, reports progress every second while stopping (20 s wait hint), and --install-service sets the preshutdown timeout to 30 s. A service installed by an earlier version keeps the Windows default (10 s on Windows 10 1703 and later) until it is reinstalled (--uninstall-service gyroscopic, then the same command line with --install-service gyroscopic). Stop-Service works without the reinstall.
Boot: unlike the Tracerlight services, the Gyroscopic service starts with the other automatic services (not delayed); check with sc.exe qc gyroscopic (START_TYPE 2 AUTO_START).
Start-up (1.11.1 and later): the service is start pending until the HTTP listener is bound, then running, so Start-Service returns once Gyroscopic accepts requests. If start-up fails (bad config, port in use), the service stops with service-specific exit code 1, Start-Service fails, and the error is the last line of the log. At boot it waits for Tcpip and starts with the other automatic services (not delayed; it binds locally and resolves no names). 1.11.0 reported running at once and restarted only three times.
Install and log file (1.11.2 and later): --install-service creates the log directory and grants the service account modify access to it; if either fails, the service is removed again and the command exits 1. A relative --log-file is stored as an absolute path, and the install prints the log file it will use. Further service-specific exit codes: 2, the log file cannot be opened (see sc.exe query <NAME>, since nothing reaches the log); 3, start-up did not finish within 180 s (the process exits and the restart actions run).
Log directory (1.11.3 and later): the service account gets modify access to the log directory, so a --log-file directory must be inside %ProgramData% (not %ProgramData% itself) and must not contain the .exe; a drive root, C:\Windows, Program Files or the program's own directory is rejected and no service is created. --uninstall-service removes that access again; from 1.11.4 this happens before the service is deleted, and if it fails the service is kept (see the table). From 1.11.6, a junction or symbolic link on the log path, or a directory there owned by a non-administrator, is rejected before the service is created; the log directory's permissions are replaced (SYSTEM and Administrators full control, other services kept), so add hand-made entries on %ProgramData%\solidfokus\logs again after install. A failed install restores them. For exit code 2 the reason is in the Application event log, source = service name: Get-WinEvent -LogName Application -MaxEvents 200 | ? ProviderName -eq '<NAME>' | % { $_.Properties[0].Value }.
Known issue in 1.11.7 and earlier: on current Windows 11 --install-service fails with cannot set the recovery actions: IO error in winapi call: Access is denied. (os error 5); the service was removed again, also from an elevated prompt or as SYSTEM. The install opened the new service without the start right that Windows requires for restart recovery actions. Fixed in 1.11.8, verified on real Windows 11. A service installed by an earlier version may have no restart actions (sc.exe qfailure <NAME> lists none). To add the documented ones (5 s, 10 s, then every 60 s, count reset after a day), run elevated: sc.exe failure <NAME> reset= 86400 actions= restart/5000/restart/10000/restart/60000 and sc.exe failureflag <NAME> 1.
Install the binary
$ver = "1.12.6-bcd8897" # from download.solidfokus.com
$url = "https://download.solidfokus.com/public/gyroscopic/x86_64-unknown-windows/gyroscopic-$ver.exe"
$dir = "C:\Program Files\SolidFokus"
New-Item -ItemType Directory -Force $dir | Out-Null
Invoke-WebRequest $url -OutFile "$dir\gyroscopic.exe"
Invoke-WebRequest "$url.sha256" -OutFile "$env:TEMP\gyroscopic.sha256"
$want = (Get-Content "$env:TEMP\gyroscopic.sha256").Split(" ")[0]
if ((Get-FileHash "$dir\gyroscopic.exe" -Algorithm SHA256).Hash -ne $want) { throw "SHA-256 mismatch" }
$exe = "$dir\gyroscopic.exe"
& $exe -V--install-service records the path of the .exe it runs from, so put the binary in its final place first. The service account NT SERVICE\<NAME> must be able to read the .exe: C:\Program Files\SolidFokus works, but an .exe under your user profile (C:\Users\<user>\…, such as Downloads) installs without an error and then fails to start.
Configure, install, start
$cfg = "$env:ProgramData\solidfokus\gyroscopic"
New-Item -ItemType Directory -Force $cfg | Out-Null
& $exe --config | Out-File -Encoding ascii "$cfg\config.json"
notepad "$cfg\config.json" # change the three auth secrets; listen address and port
# Test in the foreground first (Ctrl+C stops it)
& $exe --config "$cfg\config.json" --log-format json
# Install, then grant the virtual account read access, then start
# icacls must come after --install-service: NT SERVICE\gyroscopic only exists once the
# service is created; before that icacls fails with "No mapping between account
# names and security IDs". --install-service does not start the service.
& $exe --config "$cfg\config.json" --log-format json --install-service gyroscopic
icacls $cfg /inheritance:r /grant:r "*S-1-5-32-544:(OI)(CI)F" "*S-1-5-18:(OI)(CI)F" "NT SERVICE\gyroscopic:(OI)(CI)RX"
Start-Service gyroscopic
Invoke-RestMethod http://127.0.0.1:3000/health
Get-Content -Wait "$env:ProgramData\solidfokus\logs\gyroscopic.log"-Encoding ascii matters on Windows PowerShell 5.1, where utf8 writes a byte order mark the JSON parser rejects. The icacls line removes inherited access and leaves Administrators, SYSTEM and NT SERVICE\gyroscopic; the config holds the API secrets. Run it after --install-service: the virtual account NT SERVICE\<NAME> does not exist until the service is created (otherwise: “No mapping between account names and security IDs”).
Firewall
No rule on the default 127.0.0.1. If Tracerlight or Tailfin on other hosts connect directly, set listen_address and open the port (plain HTTP: trusted networks only, see section 3):
New-NetFirewallRule -DisplayName "Gyroscopic TCP 3000" -Direction Inbound -Protocol TCP -LocalPort 3000 -Action AllowOperate, change, upgrade
Stop-Service gyroscopic
Restart-Service gyroscopic
sc.exe qc gyroscopic # command line, account, Tcpip dependency, start type
sc.exe qfailure gyroscopic # restart actions
# RUST_LOG (then restart)
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\gyroscopic" -Name Environment -Type MultiString -Value "RUST_LOG=debug"
# Change arguments: remove and install again
& $exe --uninstall-service gyroscopic
& $exe --config "$cfg\config.json" --log-format json --install-service gyroscopic
# Upgrade: stop, replace the .exe (same path), start
Stop-Service gyroscopic
Copy-Item "$env:TEMP\gyroscopic-new.exe" $exe -Force
Start-Service gyroscopic
7. Logging
Logs go to stdout (--log-format, RUST_LOG); no built-in rotation. Linux: journald. FreeBSD/OpenBSD: /var/log/solidfokus/gyroscopic.log.
# FreeBSD /usr/local/etc/newsyslog.conf.d/solidfokus.conf
/var/log/solidfokus/gyroscopic.log gyroscopic:gyroscopic 640 7 * @T00 ZB /var/run/gyroscopic.pid
# OpenBSD /etc/newsyslog.conf (append; OpenBSD has no conf.d)
/var/log/solidfokus/gyroscopic.log root:wheel 640 7 * @T00 Z
On FreeBSD, append the line to the shared /usr/local/etc/newsyslog.conf.d/solidfokus.conf (create it if absent); never replace that file, since Tracerlight, Gyroscopic and Tailfin share it, and do not add a second line for the same log. Z gzips rotated logs; B stops newsyslog writing its plain-text turnover banner into the JSON log. Every FreeBSD entry needs the pid file, otherwise newsyslog signals syslogd. On OpenBSD syslogd writes the file, so the entry has no pid file: newsyslog sends SIGHUP to syslogd, which reopens it, and the collector keeps running with its data. Only Z is used there; the file is already syslog format. After each rotation the new file starts with newsyslog's own logfile turned over line; this is normal.
Tested on OpenBSD 7.9 and 8.0 (2026-11-27) with 1.12.6-bcd8897: the OpenBSD line as printed, with a forced rotation (newsyslog -F). The rotated file was gzipped, the new file was root:wheel 0640, syslogd reopened it without a restart, and Gyroscopic kept running with its data (same pid, same tags and latest records before and after). Not yet tested: a scheduled midnight (@T00) run by cron, and RUST_LOG through the login class.
8. Verify
# OpenBSD: curl is not in base; run pkg_add curl first
curl -fsS http://127.0.0.1:3000/health
# -> {"status":"ok","version":"1.12.5-..."} (no auth needed)
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:3000/api/v1/tags?type=client
# -> 401 when auth is configured
curl -fsS -u "tailfin:$TAILFIN_SECRET" "http://127.0.0.1:3000/api/v1/tags?type=client"
# -> lists client tags once Tracerlight clients send telemetry
# with "tls": "self-signed"
# FreeBSD / OpenBSD: use --cacert /var/db/gyroscopic/tls/cert.pem
curl -fsS --cacert /var/lib/gyroscopic/tls/cert.pem https://localhost:3000/health
Notes
- Data is RAM-only and lost on restart.
- Under load Gyroscopic answers 503 with Retry-After instead of blocking; Tracerlight honours it.
- SIGTERM/SIGINT drains in-flight requests before exit.
- Upgrade Gyroscopic before Tracerlight.
- Windows:
--install-servicesucceeds butStart-Servicefails: check that the .exe is not underC:\Users\<user>\…; the service account cannot read it there. Run--uninstall-service <NAME>, move the .exe toC:\Program Files\SolidFokusand install again from there.
Troubleshooting reference: Troubleshooting.
9. Upgrade procedure
- Order: upgrade Gyroscopic before Tracerlight (clients first, then servers; see the Tracerlight install page, section 8).
- Download and verify the new binary (section 1) and check it with
-V. - Replace the binary at the same path and restart the service. Data is RAM-only, so the restart clears the stored history.
- Windows, upgrading from a version before 1.11.9: reinstall the service once (
--uninstall-service gyroscopic, then--install-service gyroscopicwith the same arguments) to get the 30 s preshutdown timeout, thenStart-Service gyroscopic. - To 1.12.6: no config change; upgrade in place. Only the
--licensetext changed. - To 1.12.5: no config change; upgrade in place. An open MCP/SSE connection no longer keeps the process from exiting on SIGTERM, so shutdown and restart are prompt with MCP clients connected.
- Before turning on self-signed TLS: install the current service setup from section 6: the systemd unit with
StateDirectory=gyroscopic(thensystemctl daemon-reload), or the FreeBSD/OpenBSD rc.d script with the/var/db/gyroscopic/tlsline. On Windows,--uninstall-service gyroscopicand--install-service gyroscopicwith the same arguments once, so the TLS folder and its grants are created. Switching a listener to TLS means every client must switch tohttps://and pin at the same time. - Verify with
/health(section 8): it reports the new version.
install -m 0755 gyroscopic-1.12.6-bcd8897 /usr/local/bin/gyroscopic && systemctl restart gyroscopic # Linux
install -m 0555 gyroscopic-1.12.6-bcd8897 /usr/local/bin/gyroscopic && service gyroscopic restart # FreeBSD
install -m 0555 gyroscopic-1.12.6-bcd8897 /usr/local/bin/gyroscopic && rcctl restart gyroscopic # OpenBSDGyroscopic needs no change to show a Tracerlight server drain: intervals with nothing sent count as no measurement, not as loss.
10. Uninstall
These steps reverse sections 1–7. Run them as root (Windows: elevated PowerShell). Data is RAM-only, so stopping the service deletes it; there are no data files. First repoint or remove what talks to Gyroscopic: Tracerlight clients and servers with a --config (they queue and retry), Tailfin (it answers 502), and MCP clients.
Deleting log files is your choice. /var/log/solidfokus, C:\Program Files\SolidFokus, %ProgramData%\solidfokus and the FreeBSD file /usr/local/etc/newsyslog.conf.d/solidfokus.conf are shared with Tracerlight and Tailfin: remove only Gyroscopic's lines and files from them, and a directory only when it is empty. The steps keep the self-signed TLS folder (cert.pem and key.pem), as --uninstall-service does on Windows; a later install reuses it, so the fingerprint stays the same. To remove it as well, see the last step.
Linux (systemd)
systemctl disable --now gyroscopic
rm /etc/systemd/system/gyroscopic.service
systemctl daemon-reload
rm -r /etc/gyroscopic # config and secrets
rmdir /var/lib/gyroscopic 2>/dev/null # StateDirectory; removed only when empty, so TLS files stay
userdel gyroscopic
getent group gyroscopic && groupdel gyroscopic # if a group is left
rm /usr/local/bin/gyroscopic
FreeBSD (rc.d)
service gyroscopic stop
sysrc -a | grep '^gyroscopic_' # every Gyroscopic line in rc.conf
sysrc -x gyroscopic_enable # and each other name listed above
rm /usr/local/etc/rc.d/gyroscopic
# Delete the gyroscopic.log line from /usr/local/etc/newsyslog.conf.d/solidfokus.conf
rm -r /usr/local/etc/gyroscopic
pw userdel gyroscopic
pw groupshow gyroscopic >/dev/null 2>&1 && pw groupdel gyroscopic # if a group is left
rm /usr/local/bin/gyroscopic
# Optional: log files
rm -f /var/log/solidfokus/gyroscopic.log*
OpenBSD (rc.d)
rcctl stop gyroscopic
rcctl disable gyroscopic
rm /etc/rc.d/gyroscopic
grep gyroscopic /etc/rc.conf.local 2>/dev/null # must print nothing; the file may not exist
# Delete the three-line !!gyroscopic block from /etc/syslog.conf, then:
rcctl restart syslogd
# Delete the gyroscopic.log line from /etc/newsyslog.conf
rm -f /etc/login.conf.d/gyroscopic # only if you made the RUST_LOG login class
rm -r /etc/gyroscopic
userdel _gyroscopic
groupdel _gyroscopic
rm /usr/local/bin/gyroscopic
# Optional: log files
rm -f /var/log/solidfokus/gyroscopic.log*
If /etc/login.conf.db exists and you removed the login class, rebuild it with cap_mkdb as login.conf(5) describes.
Windows (native service)
$exe = "C:\Program Files\SolidFokus\gyroscopic.exe"
& $exe --uninstall-service gyroscopic
Remove-NetFirewallRule -DisplayName "Gyroscopic TCP 3000" # if you created it
Remove-Item -Recurse "$env:ProgramData\solidfokus\gyroscopic" # config and secrets
Remove-Item $exe
# Optional: log files
Remove-Item "$env:ProgramData\solidfokus\logs\gyroscopic.log*"
Run --uninstall-service before deleting the .exe. If it fails, it prints the icacls command to run; run it and uninstall again.
Firewall, NGINX and clients
- Remove the firewall rules you added for TCP 3000 and 3101 (section 3).
- NGINX (section 4, if used): remove the Gyroscopic
serverblocks and upstreams from your NGINX config and reload NGINX. Keep NGINX itself if other sites use it. - MCP clients: remove the Gyroscopic MCP entry from the assistant's config, and any
NODE_EXTRA_CA_CERTSthat points at Gyroscopic'scert.pem.
Optional: remove the TLS certificate and key
Only if you also want the self-signed cert.pem and key.pem gone. A later install then creates a new certificate with a new fingerprint, so every client pin must be updated. If the config set tls_dir, remove that folder instead. Your own certificate files ("tls": {"cert": …, "key": …}) are not touched.
rm -rf /var/lib/gyroscopic # Linux
rm -rf /var/db/gyroscopic # FreeBSD, OpenBSD
Remove-Item -Recurse "$env:ProgramData\solidfokus\gyroscopic-tls" # Windows
Check: gyroscopic -V is not found, and nothing listens on 3000 or 3101.
Tested on FreeBSD 15.1 (2026-11-23): the FreeBSD steps, except the firewall step and the optional TLS step. Tested on Ubuntu 24.04 (2026-11-25): the Linux steps, except the firewall step and the optional TLS step. Tested on OpenBSD 7.9 and 8.0 (2026-11-26): the OpenBSD steps, including removing the pf rule and (on 8.0) the optional TLS step. Not yet tested on a real host: the Windows steps.