View Single Post
  #1   (View Single Post)  
Old 22nd September 2017
mefisto mefisto is offline
Shell Scout
 
Join Date: Sep 2017
Posts: 97
Default Running a command/script on boot

Greetings all,

due to my highly developed paranoia, I would like to run the /usr/sbin/syspatch upon boot.

I have perused the FAQ for startup and if I understand it correctly, I can create a script /path/to/run_syspatch:
Code:
#! /bin/sh
/usr/sbin/syspatch
if [ $? -ne 0 ]
then
{
echo "Error, syspatch failed"
}
And them amend /etc/rc.local:
Code:
/path/to/run_syspatch
.
Am I correct, or have I missed something?

Kindest regards,

M
Reply With Quote