This example assumes you want your script to start up when the target multi-user is launched. Issue a chmod 755 to your script to enable execute permissions
Since your are using a shell script, make sure you have #!/bin/sh in the first line of the script.
Now for the part that is new:
Create your systemd service file below /etc/systemd/system. In your case you could call it /etc/systemd/system/noturbo.service then add the following contents:
Quote:
[Unit]
Description=No Turbo
[Service]
ExecStart=/usr/bin/noturbo.sh
[Install]
WantedBy=multi-user.target
|
Then:
# systemctl enable noturbo.service
You can start the service:
# systemctl start noturbo.service
Reboot to verify it does what you need and tweak as required. The ArchLinux wiki is a great resource (LQ is great too, but this is a bit more direct).
shamelessly derived from
https://wiki.archlinux.org/index.php...oot_process.3F