OpenVZ Forum


Home » General » Support » Vzctl and VPS variables
Vzctl and VPS variables [message #3755] Wed, 14 June 2006 13:44 Go to previous message
laurent is currently offline  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
 
Read Message
Read Message
Previous Topic: no firewall?
Next Topic: *SOLVED* Time inside vps differs from the host machine
Goto Forum:
  


Current Time: Sun Sep 15 17:38:37 GMT 2024

Total time taken to generate the page: 0.03468 seconds