Hi, I copied the script exactly using phoenix.sh, did chmod 755 and when running chkconfig still I get: [EMAIL PROTECTED] init.d]# chkconfig --add apachejames service apachejames does not support chkconfig
We are using Redhat Linux Enterpise 5.1 Any help appreciated -----Original Message----- From: Stefano Bagnara [mailto:[EMAIL PROTECTED] Sent: 07 June 2008 09:23 PM To: James Users List Subject: Re: How to get chkconfig to work with james-server.sh Hi Hillel, I use this command in rc.d/init.d: /etc/rc.d/init.d/apachejames --------------------- #!/bin/sh # Startup script for Apache JAMES Server # # chkconfig: 3 80 20 # description: Run Apache JAMES Server # Source function library. . /etc/rc.d/init.d/functions [ -f /usr/local/james/bin/phoenix.sh ] || exit 0 /usr/local/james/bin/phoenix.sh $1 ------------------- This also include chkconfig directives. You probably just need to change phoenix.sh with james-server.sh. Stefano Hillel ha scritto: > Hi, > > I got James to work with james-server.sh by getting jsvc to compile under > the 64 bit Linux OS that we are using. To do this I needed to run > "configure" and edit the generated Makedefs file. I added m64 to the > Makedefs file in the lines of CFLAGS and LDFLAGS. > > CFLAGS = -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"amd64\" -m64 > -I/usr/java/include -I/usr/java/include/linux -Wall -Wstrict-prototypes > LDFLAGS = -m64 -ldl lpthread > > Now I'm trying to get james-server.sh to start James when Linux boots. > I've copied james-server.sh to /etc/init.d and renamed james-server.sh to > james-server > > If I run: chkconfig --add james-server > Linux gives the error: service james-server does not support chkconfig > > Any suggestions on how to get james-server.sh into a format where chkconfig > will accept it? > > Thanks --------------------------------------------------------------------- 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]
