Auto-detect if Hudson is run in Solaris <a href="http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.jsp">SMF</a>

and provide restart capability.
    (<a href="http://n4.nabble.com/Self-restart-not-available-when-running-as-Solaris-SMF-tp1289605p1289605.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26478 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-01-26 23:50:08 +00:00
1 parent 93bb4a66a1
commit 0f650fc807
2 files changed
+4 -1

No files matched your search

@@ -83,6 +83,9 @@ public abstract class Lifecycle implements ExtensionPoint {
"Default Windows lifecycle does not support restart.");
}
};
} else if (System.getenv("SMF_FMRI")!=null && System.getenv("SMF_RESTARTER")!=null) {
// when we are run by Solaris SMF, these environment variables are set.
instance = new SolarisSMFLifecycle();
} else {
// if run on Unix, we can do restart
try {