Sounds like your problem can be easily solved by reading the manpage, as the previous 
email from Paul suggests.
man chkconfig
will tell you exactly why "service service-name does not support chkconfig"

The whole point of chkconfig is to manage the installing of the service for you ( e.g. 
symlinks to init.d/yourscript from different
run levels)
You need specially formatted comments in your scripts, starting with something like "# 
chkconfig : 2345 80 20" - the manpage has an
example.






> -----Original Message-----
> From: Stuart Stephen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 10:57 AM
> To: Tomcat Users List
> Subject: RE: Installing Tomcat as a Service
>
>
> Thanks for the reply, I've tried creating a script in the /etc/init.d
> directory and then running the chkconfig --add script-name and this hasn't
> worked for me.
>
> I'm getting an error saying that:
> service service-name does not support chkconfig
>
> I must still be doing something wrong?
>
> The script has the same permissions showing in the ls -l list?
>
> -----Original Message-----
> From: Paul Yunusov [mailto:[EMAIL PROTECTED]
> Sent: 20 August 2003 13:24
> To: Tomcat Users List
> Subject: Re: Installing Tomcat as a Service
>
>
> On August 20, 2003 04:19 am, Stuart Stephen wrote:
> > Hi all,
> >
> > How might I go about installing Tomcat as a service in RedHat 9.0. I've
> > never installed a service under linux manually before and I'm not sure
> what
> > to do. I can't find the appropriate documentation in the manuals for
> either
> > Tomcat or RedHat. I must be looking in the wrong places :O(
> >
> > UNRELATED: Also, If I wanted to install a java program as a service, how
> > might I do this? Is this a similar process?
> >
> > Regards,
> > Stuart
>
> man chkconfig
> man serviceconf
> man init
>
> For a Java program, write a wrapper shell script like Tomcat authors did
> with
> catalina.sh.
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to