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]

Reply via email to