> -----Original Message----- > From: Vidiot > Sent: Tuesday, April 30, 2002 6:36 PM > > >It really does not matter what those scripts do as the fapsrv > >script in /etc/init.d/ never gets executed with the "stop" > >argument. I have modified the fapsrv script by adding an echo > >of the script name and command line params and piped it to a > >file in /tmp (appended). A check of the contents of this "log" > >file only show the script as starting during runlevel 3. It > >does not get executed as K01fapsrv from the rc0.d, rc1.d and > >rc6.d (as setup by chkconfig). I have even tried using a > >different number 04 (instead of 01) and no go. > > You still haven't answered my query. Does it work when you do it > manually? > > If you do "/etc/init.d/fapsrv start" and then follow it with > "/etc/init.d/fapsrv stop", does the server actually start and then stop?
Sorry, did miss saying that but yes I did test and, except for not having RUNLEVEL defined, it does execute correctly to start and stop the database servers as it should. > > Correct me if I am wrong, but /tmp might not be the right place to put it. > I believe that /tmp gets cleaned out at boot time, which means only the > script start will show up. > > Place the output into /var/log, or drop it as /fapsrv.log.out I am new to Linux and had not been aware of that. It would also mean some redesign of otherthings as well. Retried with both /var/log/fapsrv.log and /fapsrv.log and only the start execution shows. > > No matter what, please let us know the result of running the > script manually. > > If you delve deeper into the init.d sendmail script, you can see what is > going on while the system is booting or stopping, i.e., you'll get the > message on the screen about it starting or stopping. It is a really nice > system for displaying on the screen what is gong on and when. While it > does make your script more complicated, it does provide great debugging. > I don't have a problem with tearing apart the existing scripts to see how they work but first I need to get my @#$@^@#%$ script to execute before I can even begin to attempt to get the correct content. Thanks muchly for your input it is appreciated. Regards, Hugh -- Hugh E Cruickshank, Forward Software, www.forward-software.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list