[Swift-commit] r3982 - usertools/persistent-coasters
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Jan 17 15:39:34 CST 2011
Author: wozniak
Date: 2011-01-17 15:39:33 -0600 (Mon, 17 Jan 2011)
New Revision: 3982
Added:
usertools/persistent-coasters/run-job.zsh
usertools/persistent-coasters/system-info.sh
usertools/persistent-coasters/system-info.swift
Log:
Add a user job to test the service once started
Added: usertools/persistent-coasters/run-job.zsh
===================================================================
--- usertools/persistent-coasters/run-job.zsh (rev 0)
+++ usertools/persistent-coasters/run-job.zsh 2011-01-17 21:39:33 UTC (rev 3982)
@@ -0,0 +1,16 @@
+#!/bin/zsh
+
+# Launch a user job
+# Use after running start-service.zsh
+
+APP=$( cd $( dirname $0 ) ; /bin/pwd )
+TOOLS=${APP} # In the future this might be ${SWIFT_HOME}/tools
+source ${TOOLS}/helpers.zsh
+[[ $? != 0 ]] && print "Could not load helpers.zsh!" && exit 1
+
+SWIFT_OUT=logs/swift-user.out
+swift -config swift.properties \
+ -sites.file sites.xml \
+ -tc.file tc.data \
+ system-info.swift < /dev/null # >& ${SWIFT_OUT}
+exitcode "Swift user job failed!"
Property changes on: usertools/persistent-coasters/run-job.zsh
___________________________________________________________________
Name: svn:executable
+ *
Added: usertools/persistent-coasters/system-info.sh
===================================================================
--- usertools/persistent-coasters/system-info.sh (rev 0)
+++ usertools/persistent-coasters/system-info.sh 2011-01-17 21:39:33 UTC (rev 3982)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# User script to be submitted by Swift using persistent Coasters
+# Simply report some system info to stdout for diagnostics
+
+hostname
+echo
+uname -a
+
+exit 0
Property changes on: usertools/persistent-coasters/system-info.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: usertools/persistent-coasters/system-info.swift
===================================================================
--- usertools/persistent-coasters/system-info.swift (rev 0)
+++ usertools/persistent-coasters/system-info.swift 2011-01-17 21:39:33 UTC (rev 3982)
@@ -0,0 +1,20 @@
+
+/**
+ * Simple script that does nothing of consequence to
+ * the CoasterService. Settings are passed along
+ * which configure the CoasterService.
+ *
+ * We can do some diagnostic stuff here.
+ * */
+
+type file;
+
+app (file output) passivate (file script)
+{
+ sh @script stdout=@output;
+}
+
+file s<"system-info.sh">;
+file o<"system-info.out">;
+
+o = passivate(s);
More information about the Swift-commit
mailing list