initscript writes on stdout and stderr
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 18 Jun 2010 13:40:10 +0000 (15:40 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 18 Jun 2010 13:40:10 +0000 (15:40 +0200)
system/config_default.py

index a4bda29..a7f6fc6 100644 (file)
@@ -136,7 +136,12 @@ def initscripts(options,index):
     initscripts= [ { 'initscript_fields' : 
                      { 'enabled' : True,
                        'name':'script1',
-                       'script' : '#! /bin/sh\n (echo Starting test initscript: Stage 1; date) > /tmp/script1.stamp \n ',
+                       'script' : """#! /bin/sh
+(echo Starting test initscript: script1; date) > /tmp/script1.stamp
+echo "This is the stdout of the sliver initscript" 
+exec 1>&2
+echo "This is the stderr of the sliver initscript" 
+""",
                        }},
                    { 'initscript_fields' : 
                      { 'enabled' : True,