简体   繁体   中英

Linux set -x when run from a process on Azure

I have bash script which sets the environment and runs a java process. The script calls "set -x". I have an init.d service which runs a guard java program which does all kinds of guarding tasks including identifying that the process is dead and running the shel that starts it. On AWS it works perfect. I moved to azure and the bash script works perfect when run from command line, but doesn't work when run from the guarding java process. taking down the "set -x" solved it and now it runs also on azure. Any idea what can cause the issue? Thanks, Nir

What is the OS version you are using on Azure. We are not able to reproduce the issue. We also ran a init.d service which runs a sample java program which in turn invokes a shell script which has set -x inside it.

Is set -x important for you to run your script?, because all it does is provide a verbose of each statement that is being executed in your script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM