Solved

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

Posted on 2014-10-27
3
828 Views
Last Modified: 2014-10-27
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?
0
Comment
Question by:edwards_
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Stampel earned 500 total points
ID: 40406781
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
 

Author Closing Comment

by:edwards_
ID: 40406940
Thanks for showing me a new technique versus what I inherited from previous colleagues.
0
 
LVL 7

Expert Comment

by:Stampel
ID: 40406998
welcome :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remove a folder in Linux 9 104
i can not do linux commands in cygwin windows 10 6 75
nagios alerts 3 46
CentOS 7 Installation 7 73
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question