Re: Shutdown script for linux
Posted in 1999
Topics: Platform-Specific Issues
Jonathan Leffler wrote: > > In addition to all the other points people made, you should look carefully > at the other scripts in the /etc/rc.d directory. Under RH6.0 at any rate > (I've not checked 5.2), you have to do more work than on other systems. > You have to create a file in a location under /var, and your shutdown > script will only be called if the file indicates that the system was > brought up successfully. Nice touch, but completely different from any > other Unix system! > Thanks, this solved the problem. I have to touch file in /var directory after starting informix. If the file in /var directory didn't exist, shutdown script was completely ignored during shutdown. +--------------------------+-----------------------------+ | Zeljan Silje | e-mail: zeljan@laus.hr | | CC Computer Consulting | | | Put Republike 7 | Tel: +385 (20) 356-877 | | 20 000 Dubrovnik | Fax: +385 (20) 356-877 | | Hrvatska (Croatia) | URL: http://www.laus.hr | +--------------------------+-----------------------------+
In article <7v8reu$2n$1@news.xmission.com>, zeljan@laus.hr says... > > > Jonathan Leffler wrote: > > > > In addition to all the other points people made, you should look carefully > > at the other scripts in the /etc/rc.d directory. Under RH6.0 at any rate > > (I've not checked 5.2), you have to do more work than on other systems. > > You have to create a file in a location under /var, and your shutdown > > script will only be called if the file indicates that the system was > > brought up successfully. Nice touch, but completely different from any > > other Unix system! > > > > Thanks, this solved the problem. I have to touch file in /var directory > after starting informix. If the file in /var directory didn't exist, > shutdown script was completely ignored during shutdown. Hmm, touch what file in /var ? Just like /var/lock/subsys/any_file ? Can you please give an example of your final script? TIA, Yours, Andrej Falout, http://www.falout.com ICQ 7628616 ++64.21.607517 #----------------------------------------------------------------- globals "std_disclaimer.4gl" Ask yourself just one question: ' Qu' m's se puede hacer y aprender ? - Propellerhead ReBirth RB-338 manual