[vlma-devel] commit: Only use nohup with the start command. (Adrien Grand )

git version control git at videolan.org
Tue Jul 29 22:31:40 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Tue Jul 29 22:15:43 2008 +0200| [2a4403b3c9e425068158b3ee9f19ed2fb25bc5ee]

Only use nohup with the start command.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=2a4403b3c9e425068158b3ee9f19ed2fb25bc5ee
---

 vlma-distribution/src/bin/vlmad |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/vlma-distribution/src/bin/vlmad b/vlma-distribution/src/bin/vlmad
index eb9c3d7..f9fd21d 100644
--- a/vlma-distribution/src/bin/vlmad
+++ b/vlma-distribution/src/bin/vlmad
@@ -105,5 +105,9 @@ VLMA_OPTS="$VLMA_OPTS\
 
 # Run VLMad
 OPTS="$VLMA_OPTS $JAVA_OPTS org.videolan.vlma.daemon.VLMad $COMMAND"
-exec nohup $JAVA $OPTS < /dev/null > /dev/null 2>&1 &
-
+if [ "$COMMAND" = "start" ]
+then
+  exec nohup $JAVA $OPTS < /dev/null > /dev/null 2>&1 &
+else
+  exec $JAVA $OPTS
+fi



More information about the vlma-devel mailing list