You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/04/10 12:44:35 UTC

incubator-ignite git commit: nohup log

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-676 836a9e2e2 -> 5b7dbf79c


nohup log


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5b7dbf79
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5b7dbf79
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5b7dbf79

Branch: refs/heads/ignite-676
Commit: 5b7dbf79ca6ba53a1ca95e9d44be660f59a33d15
Parents: 836a9e2
Author: Artem Shutak <as...@gridgain.com>
Authored: Fri Apr 10 13:44:33 2015 +0300
Committer: Artem Shutak <as...@gridgain.com>
Committed: Fri Apr 10 13:44:33 2015 +0300

----------------------------------------------------------------------
 log1.txt                                        | 22 +++++++++++++++++++-
 log_nohup_help.txt                              |  1 +
 .../util/nodestart/StartNodeCallableImpl.java   |  6 ++++--
 3 files changed, 26 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5b7dbf79/log1.txt
----------------------------------------------------------------------
diff --git a/log1.txt b/log1.txt
index 8ccf92e..fc9f32b 100644
--- a/log1.txt
+++ b/log1.txt
@@ -1 +1,21 @@
-Nothig happens.
\ No newline at end of file
+Usage: nohup COMMAND [ARG]...
+  or:  nohup OPTION
+Run COMMAND, ignoring hangup signals.
+
+      --help     display this help and exit
+      --version  output version information and exit
+
+If standard input is a terminal, redirect it from /dev/null.
+If standard output is a terminal, append output to 'nohup.out' if possible,
+'$HOME/nohup.out' otherwise.
+If standard error is a terminal, redirect it to standard output.
+To save output to FILE, use 'nohup COMMAND > FILE'.
+
+NOTE: your shell may have its own version of nohup, which usually supersedes
+the version described here.  Please refer to your shell's documentation
+for details about the options it supports.
+
+Report nohup bugs to bug-coreutils@gnu.org
+GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
+General help using GNU software: <http://www.gnu.org/gethelp/>
+For complete documentation, run: info coreutils 'nohup invocation'

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5b7dbf79/log_nohup_help.txt
----------------------------------------------------------------------
diff --git a/log_nohup_help.txt b/log_nohup_help.txt
new file mode 100644
index 0000000..8ccf92e
--- /dev/null
+++ b/log_nohup_help.txt
@@ -0,0 +1 @@
+Nothig happens.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5b7dbf79/modules/ssh/src/main/java/org/apache/ignite/internal/util/nodestart/StartNodeCallableImpl.java
----------------------------------------------------------------------
diff --git a/modules/ssh/src/main/java/org/apache/ignite/internal/util/nodestart/StartNodeCallableImpl.java b/modules/ssh/src/main/java/org/apache/ignite/internal/util/nodestart/StartNodeCallableImpl.java
index eaa0e36..4a5564d 100644
--- a/modules/ssh/src/main/java/org/apache/ignite/internal/util/nodestart/StartNodeCallableImpl.java
+++ b/modules/ssh/src/main/java/org/apache/ignite/internal/util/nodestart/StartNodeCallableImpl.java
@@ -160,6 +160,8 @@ public class StartNodeCallableImpl implements StartNodeCallable {
 
             info("Starting remote node with SSH command: " + startNodeCmd, spec.logger(), log);
 
+            shell(ses, "nohup --help  > " + igniteHome + "/log_nohup_help.txt" + " 2>& 1 &");
+
             shell(ses, startNodeCmd);
             
             log.info(">>>>> Shelled");
@@ -200,8 +202,8 @@ public class StartNodeCallableImpl implements StartNodeCallable {
             log.info(">>>>> Shell. Connected");
 
             try (PrintStream out = new PrintStream(ch.getOutputStream(), true)) {
-                log.info(">>>>> Shell. Printing to out");                
-                
+                log.info(">>>>> Shell. Printing to out");
+
                 out.println(cmd);
 
                 log.info(">>>>> Shell. Printed");