Re: init/rc scripts

2002-05-01 Thread Vidiot
>Probaly should be in a man or info page somewhere but I don't think that >init is the one it should be in since it does say that on Sys V systme >it works closely with the scripts in init.d: > >CONFORMING TO > Init is compatible with the System V init. It works > closely toget

Re: init/rc scripts

2002-05-01 Thread Bret Hughes
On Wed, 2002-05-01 at 09:51, Vidiot wrote: > >use the source Luke. > > That is what man pages are for. It should have been in there, specifically > the init man page. Not everyone can dig through sources. > Probaly should be in a man or info page somewhere but I don't think that init is the o

Re: init/rc scripts

2002-05-01 Thread Vidiot
>use the source Luke. That is what man pages are for. It should have been in there, specifically the init man page. Not everyone can dig through sources. MB -- e-mail: [EMAIL PROTECTED] It is God's job to forgive bin Laden. It is our job to set up the mee

Re: init/rc scripts

2002-05-01 Thread Bret Hughes
On Wed, 2002-05-01 at 01:36, Vidiot wrote: > >Give the man a cigar! > > > >That did the trick. I new it there must be something that was > >stopping the script from running. > > The sshd script is one of the simplist ones there. Copying that script > and replacing the appropriate sections with y

Re: init/rc scripts

2002-05-01 Thread Bill Crawford
On Tue, 30 Apr 2002, Vidiot wrote: > I don't know where you were placing some test lines, but add these and > report back. I can't create a dummy init.d script and test it, since my > Linux box is my very popular web/ftp server. Bouncing it up and down > will cause all kinds of grief with users

Re: init/rc scripts

2002-04-30 Thread Vidiot
>Give the man a cigar! > >That did the trick. I new it there must be something that was >stopping the script from running. The sshd script is one of the simplist ones there. Copying that script and replacing the appropriate sections with your commands would have allowed it to work from time one.

RE: Re[2]: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
> -Original Message- > From: Vidiot > Sent: Tuesday, April 30, 2002 11:19 PM > >Hello Hugh, > > > >Try this... (It's just a WAG) > > > >Add a line... > >touch /var/lock/subsys/fapsrv > >to the "start" portion of your script. > >and of course it's counterpart... > >rm -f /var/lock/subsys/fa

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
Give the man a cigar! That did the trick. I new it there must be something that was stopping the script from running. Thanks very much. Regards, Hugh -- Hugh E Cruickshank, Forward Software, www.forward-software.com > -Original Message- > From: Brian Ashe > Sent: Tuesday, April 30,

Re: Re[2]: init/rc scripts

2002-04-30 Thread Vidiot
>Hello Hugh, > >Try this... (It's just a WAG) > >Add a line... >touch /var/lock/subsys/fapsrv >to the "start" portion of your script. >and of course it's counterpart... >rm -f /var/lock/subsys/fapsrv >to the "stop" portion. > >IIRC, RHL needs to see that the thing was started in order to execute t

Re[2]: init/rc scripts

2002-04-30 Thread Brian Ashe
Hello Hugh, Tuesday, April 30, 2002, 10:27:28 PM, you textually orated: >> >It really does not matter what those scripts do as the fapsrv >> >script in /etc/init.d/ never gets executed with the "stop" >> >argument. Try this... (It's just a WAG) Add a line... touch /var/lock/subsys/fapsrv to th

Re: init/rc scripts

2002-04-30 Thread Vidiot
>> 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 serv

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
> -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 nam

Re: init/rc scripts

2002-04-30 Thread Vidiot
>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

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
> -Original Message- > From: Vidiot > Sent: Tuesday, April 30, 2002 5:33 PM > > >> > >/usr/bin/fapdbstart > >> > >/usr/bin/fapdbstop -q > > Since we have NO idea what these two programs do, it is hard to add more > ideas. I don't remember if you said that running t

Re: init/rc scripts

2002-04-30 Thread Vidiot
>I have completed changing the fapsrv script, removed the old hard >links and used chkconfig --add fapsrv to add the new links with >the same result. The "start" instances execute but not the "stop" >instances. > >I should note that I am not starting and stopping a service. I am >attempting to ex

Re: init/rc scripts

2002-04-30 Thread Vidiot
>Thanks for the info. I was trying very much not to have OS specific >scripts but it looks like I will have to have a Linux specific >version just for the rc script. While it has chkconfig stuff in the script, it is part of the comments, so the script will work on any Unix box. MB -- e-mail: [E

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
I have completed changing the fapsrv script, removed the old hard links and used chkconfig --add fapsrv to add the new links with the same result. The "start" instances execute but not the "stop" instances. I should note that I am not starting and stopping a service. I am attempting to execute a

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
Hi "MB": Thanks for the info. I was trying very much not to have OS specific scripts but it looks like I will have to have a Linux specific version just for the rc script. Thanks again for the info. Regards, Hugh -- Hugh E Cruickshank, Forward Software, www.forward-software.com > -Origina

Re: init/rc scripts

2002-04-30 Thread Vidiot
>I have a script (fapsrv) that I use for starting and stopping a >set of Progress database servers from the init.d/rcX.d directories. >The script contains: > >: >STATE=$1 >RUNLEVEL=${RUNLEVEL:-`who -r | awk '{print $3}'`} > >case ${STATE} in > >'start') >/usr/bin/fa

init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
Hi all: I am having some problems getting an rc script to work on RH7.2. I have a script (fapsrv) that I use for starting and stopping a set of Progress database servers from the init.d/rcX.d directories. The script contains: : STATE=$1 RUNLEVEL=${RUNLEVEL:-`who -r | awk '{print $3}'