diff options
Diffstat (limited to 'devel/jenkins/files/jenkins.in')
-rw-r--r-- | devel/jenkins/files/jenkins.in | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/devel/jenkins/files/jenkins.in b/devel/jenkins/files/jenkins.in index 901b7370550b..bb1dae703e91 100644 --- a/devel/jenkins/files/jenkins.in +++ b/devel/jenkins/files/jenkins.in @@ -64,7 +64,7 @@ command_args="-p ${pidfile} ${java_cmd} -DJENKINS_HOME=${jenkins_home} ${jenkins required_files="${java_cmd}" start_precmd="jenkins_prestart" -start_cmd="jenkins_command start" +start_cmd="jenkins_start" jenkins_prestart() { if [ ! -f "${jenkins_log_file}" ]; then @@ -80,13 +80,10 @@ jenkins_prestart() { fi } -jenkins_command() +jenkins_start() { check_startmsgs && echo "Starting ${name}." su -l ${jenkins_user} -c "exec ${command} ${command_args} ${rc_arg}" } -export HOME=${jenkins_home} -cd ${HOME} - run_rc_command "$1" |