Vzctl and VPS variables [message #3755] |
Wed, 14 June 2006 13:44  |
laurent
Messages: 18 Registered: April 2006
|
Junior Member |
|
|
hello
i want to use vzctl to execute a script in a VPS.
this script use a variable exported in /etc/profile in the VPS.
But when i excute the vzctl command, the script don't see the variable.
if it's not clear :
#vzctl exec 710 sh /app/systeme/jboss-4.0.3SP1/bin/shutdown.sh -S
/app/systeme/jboss-4.0.3SP1/bin/shutdown.sh: line 76: exec: java: not found
#vzctl exec 710 env
TERM=linux
PATH=/bin:/sbin:/usr/bin:/usr/sbin:.
PWD=/
SHLVL=1
HOME=/
_=/bin/env
or , when i log to a 710 VPS
#env
HOSTNAME=beta.toto.fr
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
USER=root
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/u sr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/r oot/bin
INPUTRC=/etc/inputrc
PWD=/root
(............)
JAVA_HOME=/usr/java/jdk1.5.0_06
LANG=fr_FR.UTF-8
SHLVL=1
HOME=/root
LOGNAME=root
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
and localy, the script is executed whithout problems
thanks for any help
|
|
|