Operating System - Linux
1835562 Members
3020 Online
110078 Solutions
New Discussion

Re: Cluadmin and userscripts

 
Harstad
Advisor

Cluadmin and userscripts

I have wriiten a script to stop/start and status check an inhouse package. It works 100% on the command line.

When I add it via cluadmin and try and enable it. It only starts the process but the applications fails.
Executing the "userscript" xxxx.bash start run correctly
Executing the start/stop scripts on command line run correctly.
Doing a service relocate "package" fail.

Do you have any idea??

Thansk


2 REPLIES 2
Johan Brusche
Honored Contributor

Re: Cluadmin and userscripts


There are statements in your script that produce output towards stdout, but the environment in which the script runs does not have a terminal associated.
To make the script run in such environment redirect all stdout to a file or the console.

Rgds,
Johan.

_JB_
jason morgan_3
Occasional Advisor

Re: Cluadmin and userscripts

If your output is not important. Send the stout and sterr to /dev/null

Did you define what shell your script runs in at the beginning of the shell script?

-Jason