Main Menu
Home
Articles, Tips, Solutions
Contact
Sitemap
Downloads
Login Form





Lost Password?
No account yet? Register
To add contents please register and login.

Index arrow Server arrow Console

Script start after Server boots PDF Print E-mail

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.

 
 

Design: Digital Eye Template