Installing Speedtest Server on Rocky Linux 8
Please note this is for organizations running a Speedtest Server from Ookla.
Follow the instructions as indicated here. Where it discusses “Ensure server daemon starts automatically” do the following:
create a file named /usr/lib/systemd/system/OoklaServer.service – replace OoklaDirectory with the full path where you installed your Ookla Speedtest Server
[Service]
Type=forking
TimeoutSec=0
RemainAfterExit=yes
ExecStart=/OoklaDirectory/StartOokla
[Unit]
Description=Ookla Speedtest Server
CondidtionFileIsExecutable=/OoklaDirectory/StartOokla
After=network-online.target
Wants=network-online.target
[Install]
WantedBy=multi-user.target
Now – create a file named /OoklaDirectory/StartOokla
#!/bin/bash
# optional - run as non-root user
#su SomeUser -c '/OoklaDirectory/OoklaServer --daemon'
/OoklaDirectory/OoklaServer --daemon
execute:
chmod 700 /OoklaDirectory/StartOokla
systemctl enable OoklaServer.service
Now your speed test service will start automatically on boot!
Tested on: Rocky Linux 8.4