Event Handlers, start a java program, nohup issues.

Edgar Matzinger Edgar.Matzinger at valid.nl
Fri Jul 3 12:56:57 CEST 2009


LS,

Marco scribbled on 2009-07-03:

> Hello users:
> 
> nohup $JAVA_CMD -cp $CLASSPATH $JVM_OPTIONS 
> JMXServer.JMXServerDispatcher $PORT </dev/null >>$LOG_FILE
> 2>>$LOG_FILE &

Change this in .... $PORT <&- >>$LOGFILE 2>&1 &
<&- closes STDIN....

> Any thoughts? other suggestions?

  can't you use the init.d script? E.g. "/sbin/service jmx start"...
Or something similar....

HTH, cu l8r, Edgar.
-- 
    |\  /| :                                : Addr: Valid Eindhoven B.V.
 /  | \/ | :     Edgar R. Matzinger         :       t.a.v. E.R. Matzinger
/   |    | :                                :       Flight Forum 565
\  /|  /\| :                                :       5657DR Eindhoven
 \/   /  \ :     Valid Eindhoven BV         :
  \  /\  / :                                :
   \/ |\/  :                                :
      |    :                                :
Disclaimer: Any comments, opinions made are mine, etc ... 



------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list