how to handle a RHEL7 systemd initial startup script after kickstart?

Prior to RHEL/Centos 7, I used a one time init.d script to perform some actions like installing non-rpm based third party software during the initial boot after the kickstart. Once the script completed, it removed all traces of itself. Now with the new systemd style startups, this doesn't appear to work. Is there a way for systemd to execute the existing legacy SysV script automatically? Secondly, is the better approach to handling this via creating a new unit file that can execute under either the multi-user or the graphical targets?

If you need to call a script on reboot, you may use crontab line beginning with @reboot, then clear the line from inside the script should not be that difficult. Or flag something so it would just run when you need.

0

edwards_Author Commented: 2014-10-27

Thanks for showing me a new technique versus what I inherited from previous colleagues.