Run a Script on Startup in Ubuntu(Systemd)

Create the service file
$ cat /etc/systemd/system/set_fan_speed.service

[Unit]
Description=Set fan speed

[Service]
ExecStart=/data/om/set_fan_speed.sh

[Install]
WantedBy=multi-user.target

Enable the service

sudo systemctl enable set_fan_speed.service