Thanks Mark.
I have downloaded OpenSuSe package and installed.
Now it simply says failed.
hyslnx20:/opt/home/vm185012/Jenkins # /etc/init.d/jenkins start
Starting
Jenkins failed
I have debugged a /etc/init.d/jenkins script it fails at
case "$1" in
start)
echo -n "Starting Jenkins "
/sbin/checkproc -k -p "$JENKINS_PID_FILE" "$JAVA_HOME/bin/java"
>/var/log/jenkins.rc 2>&1
CHECK=$?
if [ $CHECK -eq 7 ]; then
rm -f "$JENKINS_PID_FILE"
if [ -x "$JENKINS_INIT_SHELL" ]; then
startproc -n $JENKINS_NICE -s -e -l
/var/log/jenkins.rc -p "$JENKINS_PID_FILE" -t 1 /bin/su -l -s
"$JENKINS_INIT_SHELL" -c "$JAVA_CMD $PARAMS &" "$JENKINS_USER"
else
HOME=$JENKINS_HOME startproc -n $JENKINS_NICE -s -e
-l /var/log/jenkins.rc -u "$JENKINS_USER" -p "$JENKINS_PID_FILE" $JAVA_CMD
$PARAMS
fi
JPROC=$( pgrep java -U $JENKINS_USER )
if [ -n "$JPROC" ]; then
echo "$JPROC" >"$JENKINS_PID_FILE"
rc_status -v
else
echo " Failed here....1"
rc_failed
rc_status -v
fi
else
The command doesnt seem to be running in the backgroud "startproc -n
$JENKINS_NICE -s -e -l /var/log/jenkins.rc -p "$JENKINS_PID_FILE" -t 1
/bin/su -l -s "$JENKINS_INIT_SHELL" -c "$JAVA_CMD $PARAMS &" "$JENKINS_USER""
and hence the below lines fail
JPROC=$( pgrep java -U $JENKINS_USER )
if [ -n "$JPROC" ]; then
On Friday, 6 January 2017 15:57:48 UTC+5:30, Mark Waite wrote:
>
> You're trying to use a package created for a Red Hat distribution on a
> distribution which is not Red Hat or a Red Hat derivative. In general,
> that won't work.
>
> Refer to
> http://unix.stackexchange.com/questions/9314/no-such-file-or-directory-etc-init-d-functions
> for
> more details describing why it won't work.
>
> You should probably use the SUSE / openSUSE long term support package from
> http://pkg.jenkins-ci.org/opensuse-stable/ or the weekly from
> http://pkg.jenkins-ci.org/opensuse/
>
> Mark Waite
>
> On Fri, Jan 6, 2017 at 3:15 AM Vijai Meda <[email protected] <javascript:>>
> wrote:
>
>> Hi,
>> I have downloaded rpm for “Red Hat/Fedora/CentOS” and installed on my
>> Suse Linux 11, below is the output of the installation.
>>
>>
>> warning: jenkins-2.32.1-1.1.noarch.rpm: Header V4 DSA signature: NOKEY,
>> key ID d50582e6
>>
>> Preparing... ###########################################
>> [100%]
>>
>> 1:jenkins ###########################################
>> [100%]
>>
>> jenkins 0:off 1:off 2:off 3:on 4:off 5:on 6:off
>>
>>
>> But when I start the Jenkins, it fails with below error.
>>
>> /etc/init.d/jenkins: line 51: /etc/init.d/functions: No such file or
>> directory
>>
>>
>> If any of you guys ever encountered or did know a solution, then please
>> help me.
>>
>> In which directory Jenkins gets installed at?
>>
>>
>> Thanks,
>>
>> Vijai
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/64a7c6ef-f469-4a6a-8944-562ec3c517d0%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/jenkinsci-users/64a7c6ef-f469-4a6a-8944-562ec3c517d0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d2a62957-2cd9-4eea-8e0a-8352bad5c244%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.