|
Script start after Server boots |
|
|
|
|
Add the comand at the end of the file /etc.local
/usr/bin/nohup /FullpathtoScript/YourScriptName >> /var/log/YourLogfile.log 2>&1 &
Use this solution if your script is not removed from your parent-process. The script keeps running and the parent-process (init) will not reach the runlevel 3. To reach runlevel3 all scripts must be ended also /etc/rc.local. If this is not the case ESX bootup fails.
Nohup is the HangUP signal (the script continues runnig in the background). It will also be used when a terminal is closed.
2>&1 The standard error is directed to standard-output
The last & removes the process from the parent process.
|