Run Custom Scripts on boot under Systemd
As archlinux has replaced initscripts with systemd as default init system and will start removing initscripts suppport, I use systemd now.
To be different from initscripts, rc scripts are no longer available. However it’s complicated to write a very .service boot script for each program. So solusion like this may be useful:
Create a systemd-service-script which start a normal script and run it on boot.
You can execute any command via the script mentioned in step 1.
In fact we are emulating the rc.local script which only works under initscripts.
The demo may look like this:
I’m a newbie on linux, systemd and English. Please let me know if any bugs ^^