How do I make a systemd service and enable it?

Create and open the service file with Nano (or your favorite text editor) and paste the contents into it:

sudo nano /etc/systemd/system/startup-brightness.service

Enable and start the service:

systemctl enable --now startup-brightness.service
3 Likes