X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Fconfig_default.py;h=4a6a9ec4714b640d8435c1eabff245d6e0469e8a;hb=cdc7ed93df0b186be4069cd03f3f44e60ead583d;hp=f2e3b3bd6bd3c4a5b6762cf0b3b6a2cad06eafb8;hpb=79181cdffeaf5466e4b2d2ce2dfe5fbfe2ba22e7;p=tests.git diff --git a/system/config_default.py b/system/config_default.py index f2e3b3b..4a6a9ec 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -342,16 +342,17 @@ command=$1; shift slicename=$1; shift stamp="the_script_name" stampfile=/tmp/$stamp.stamp +date=$(date) -echo "Running initscript with command=$command and slicename=$slicename" +echo $date "Running initscript with command=$command and slicename=$slicename" function start () { - (echo Starting test initscript: $stamp on slicename $slicename ; date) >> $stampfile - echo "This is the stdout of the sliver $slicename initscript $command (exp. start) pid=$$" - echo "This is the stderr of the sliver $slicename initscript $command (exp. start) pid=$$" 1>&2 + (echo $date Starting test initscript: $stamp on slicename $slicename ; date) >> $stampfile + echo $date "This is the stdout of the sliver $slicename initscript $command (exp. start) pid=$$" + echo $date "This is the stderr of the sliver $slicename initscript $command (exp. start) pid=$$" 1>&2 } function stop () { - echo "Removing stamp $stampfile" + echo $date "Removing stamp $stampfile" rm -f $stampfile } function restart () {