Grazie Antoni,
you are right. The last night, after several tests, I have found that Linux
was running on runlevel 5, then I have moved my links on run level 5.

Now I want remove the GNOME installation to access to Linux via telnet only.

I want uninstall GNOME and modify the runlevel via xterm.

Do you know where I can find informations about?

Thanks for your time.

----- Original Message -----
From: "Antoni Reus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 9:27 AM
Subject: Re: apache & tomcat as services under Linux


> Hi,
>
> The scripts should be named "apache" ant "tomcat" and should be
> in  /etc/rc.d/init.d/
>
> then you should make a symbolic link to them in /etc/rc.d/rc3.d/
> in the case that you start your box in the runlevel 3 (note that if when
you
> start your box it runs the X windows you are in run level 5, and you
should
> change rc3.d/ for rc5.d/. The links should be called S96tomcat and
> S97apache (I was wrong in my first post, yes tomcat should be run first).
>
> Saludos,
> -- Antoni Reus
>
> ----- Original Message -----
> From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 22, 2001 5:29 PM
> Subject: Re: apache & tomcat as services under Linux
>
>
> > OK,
> > I have created 2 different scripts, one for apache and one for tomcat.
> These
> > scripts works fine if I call them manualli: ./S97apache start or
> ./S96tomcat
> > start or ./K15........
> > But if I restart Linux, when it is up both the tomcat and apache
processes
> > are not up.
> > I have tried to examine the /var/log/boot.log but I don't found nothing
> > about.
> >
> > Why??
> > :-(((
> > Pier Paolo.
> > ----- Original Message -----
> > From: "Antoni Reus" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 20, 2001 4:47 PM
> > Subject: Re: apache & tomcat as services under Linux
> >
> >
> > > Hi,
> > >
> > > You should create a script with something like
> > > and put it on  /etc/rc.d/init.d/
> > >
> > > ------------ cut here-------------------
> > > #!/bin/sh
> > >
> > > # Set this as you have it in your sistem
> > > APACHE_HOME=/usr/local/apache
> > > TOMCAT_HOME=/usr/local/jakarta/tomcat
> > >
> > > # Test apachectl
> > > if [ ! -x $APACHE_HOME/bin/apachectl ]
> > > then
> > >     echo apachectl not found
> > >     exit
> > > fi
> > >
> > > # Test tomcat.sh
> > > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> > > then
> > >    echo tomcat not found
> > >    exit
> > > fi
> > >
> > > case $1 in
> > > start)
> > > ## Start services
> > > $APACHE_HOME/bin/apachectl start
> > > $TOMCAT_HOME/bin/startup.sh
> > > ;;
> > > stop)
> > > $TOMCAT_HOME/bin/shutdown.sh
> > > $APACHE_HOME/bin/apachectl stop
> > > ;;
> > > esac
> > > -----------------cut here ----------------------
> > >
> > > name it "apache-tomcat" and give it execution permissions
> > > with
> > > chmod u+x  apache-tomcat
> > >
> > > Then with control-panel you can link it to the run-level 3
> > > or you can make it directly with
> > >
> > > # Start in run level 3
> > > cd /etc/rc.d/rc3.d
> > > ln -s ../init.d/apache-tomcat S99apache-tomcat
> > >
> > > # Stop
> > > cd ../rc0.d
> > > ln -s ../init.d/apache-tomcat K11apache-tomcat
> > >
> > >
> > > Saludos,
> > >
> > > -- Antoni Reus
> > >
> > > ----- Original Message -----
> > > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 20, 2001 2:15 PM
> > > Subject: apache & tomcat as services under Linux
> > >
> > >
> > > Hi,
> > > I need to start to use apache &  tomcat in a production environment,
> thus
> > I
> > > need to start them as services.
> > >
> > > I'm using RedHat 7.1, someone knows which scripts I have to put in
> rc3.d.
> > >
> > > Thanks for your time.
> > >
> > > Pier Paolo.
> > >
> >

Reply via email to