File tree 2 files changed +4
-1
lines changed
core/src/main/java/hudson/lifecycle
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ public void verifyRestartable() throws RestartNotSupportedException {
83
83
"Default Windows lifecycle does not support restart." );
84
84
}
85
85
};
86
+ } else if (System .getenv ("SMF_FMRI" )!=null && System .getenv ("SMF_RESTARTER" )!=null ) {
87
+ // when we are run by Solaris SMF, these environment variables are set.
88
+ instance = new SolarisSMFLifecycle ();
86
89
} else {
87
90
// if run on Unix, we can do restart
88
91
try {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ THE SOFTWARE.
45
45
</method_context >
46
46
47
47
<!-- Set the HUDSON_HOME env variable, and run the war file in /apps/hudson/hudson.war -->
48
- <exec_method type =" method" name =" start" exec=" java -Xmx512m -Dhudson.lifecycle=hudson.lifecycle.SolarisSMFLifecycle - jar /usr/local/bin/hudson.war" timeout_seconds =" 0" />
48
+ <exec_method type =" method" name =" start" exec=" java -Xmx512m -jar /usr/local/bin/hudson.war" timeout_seconds =" 0" />
49
49
<exec_method type =" method" name =" stop" exec =" :kill -TERM" timeout_seconds =" 30" />
50
50
51
51
<!-- We are going to be kicking off a single child process so we want Wait mode-->
You can’t perform that action at this time.
0 commit comments