Greetings,

I have a question about MarkLogic installation/folder permissions on RHEL 4.7. Specifically I need to install MarkLogic so that it starts as user "mls" (which has a particular uid)...

I've updated /etc/sysconfig/MarkLogic as follows:

# where MarkLogic is installed
MARKLOGIC_INSTALL_DIR=/opt/MarkLogic

# where MarkLogic keeps its data
MARKLOGIC_DATA_DIR=/apps/MarkLogic/Data

# the user MarkLogic runs as
MARKLOGIC_USER=mls

# where MarkLogic keeps its process id
MARKLOGIC_PID_FILE=/apps/MarkLogic/MarkLogic.pid

# the umask with which MarkLogic should run
MARKLOGIC_UMASK=022

The "mls" user is the owner of /opt/MarkLogic and /apps/MarkLogic, however it has no rights in /var/lock/subsys, so when I go to start MarkLogic I get an error "cannot touch `/var/lock/subsys/MarkLogic': Permission denied".

If I modify /etc/init.d/MarkLogic as follows (comment out the touch on line #44) then it seems to run fine, but I worry that it will cause issues.

 if [ $RETVAL -eq 0 ]; then
   #touch /var/lock/subsys/$PROG
   [ -z "$INIT_VERSION" ] && log_success_msg
 else
   [ -z "$INIT_VERSION" ] && log_failure_msg
 fi

What is the right way to handle this? Does MLS need this file at all? Can I move it to /apps/MarkLogic/$PROG?

Thanks in advance for any hlelp,
Wyatt
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to