Skip navigation
This discussion is archived
20710 Views 4 Replies Latest reply: Jan 27, 2007 5:10 AM by LG RSS
Calculating status... 15 posts since
Jan 4, 2007
Currently Being Moderated

Jan 24, 2007 1:46 PM

nohup: appending output to `nohup.out''

I have copied the wildfire start-up script to my init.d directory. Everytihng is working properly but wildfire still outputs to nohup.out. How can I prevent this from happening?

  • LG KeyContributor 6,392 posts since
    Dec 13, 2005
    Currently Being Moderated
    Jan 24, 2007 2:04 PM (in response to Katrine Pertsovskaya)
    Re: nohup: appending output to `nohup.out''

    Hi Kati,

     

    this is normal for the provided script. Try "nohup ls &" - it will produce the same message.

    If you change this to "nohup ls >ls.log 2>&1 &" the message will no longer appear.

     

    LG

     

    Upd: Added this to JM-872

        • LG KeyContributor 6,392 posts since
          Dec 13, 2005
          Currently Being Moderated
          Jan 27, 2007 5:10 AM (in response to Katrine Pertsovskaya)
          Re: nohup: appending output to `nohup.out''

          Hi Kati,

           

          it makes no sense to send the content of nohup.out to syslog. If you request a javacore (kill -3) it will be written in this file. Wildfire writes it log messages to the log files in wildfire/logs/ and not to standard out or standard error, so this file stays empty.

           

          "nohup ls >ls.log 2>&1 &" itself does not display "nohup: appending output to "nohup.out"'' while

          "nohup ls >ls.log &" does.

          So you need to modify the wildfire/bin/wildfire script, and there the line

          nohup "$app_java_home/bin/java" -server .... "$@" &

          to

          nohup "$app_java_home/bin/java" -server .... "$@" &  >../logs/SDTOUT.log 2>../logs/SDTERR.log

          "&" is a "&" but it is displayed wrong because of a well-known forum bug.

           

          LG

More Like This

  • Retrieving data ...

Bookmarked By (0)