>>> On 2/8/2016 at 03:08 PM, Michael Weiner <[email protected]> wrote:
> I am running SLES 11 SP3 and I want a script to run after the full system is > up. How can I achieve this? I am looking and browsing but I haven't had any > luck with rc.local. Getting this to work as desired is fairly difficult using SysV init. The best way, which still might not be satisfactory depending on exactly what you are trying to do, is to create your own script in /etc/init.d/, using /etc/init.d/skeleton as the basis. You'll want to use $ALL for the Required-Start line: ### BEGIN INIT INFO # Provides: FOO # Required-Start: $ALL Once you're happy with the script, execute the insserv command: insserv scriptname Look in the directory for the default run-level, say run-level 3: ls rc3.d Hopefully, you'll see a symbolic to your script at or somewhere near the end of the S* entries. Mark Post ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
