How to write startup script for systemd

view story

http://unix.stackexchange.com – I have 2 graphics cards on my laptop, one is IGP and another discrete, I've written a shell script to to turn off discrete graphics card. How I can convert it to systemd script, to runt at start-up? (HowTos)