View Single Post
  #2   (View Single Post)  
Old 22nd September 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

You can run this directly from within rc.local(8). If /etc/rc.local exists, it is executed with /bin/sh just before starting local daemons. See the last lines of /etc/rc for details.

I use daily(8) with an /etc/daily.local script on my servers, and use the -c option because I still execute syspatch manually. I may need to restart daemons for userland patches or, more freqently lately, I've needed to reboot after a kernel update. And those I want to do in specific server sequence to avoid any operational outages.
Code:
#!/bin/sh
.
.
.
/usr/sbin/syspatch -c
.
.
.

Last edited by jggimi; 22nd September 2017 at 07:46 PM. Reason: corrected man page reference, typos
Reply With Quote