[jboss-jira] [JBoss JIRA] (WFLY-4570) wildfly-init-debian.sh fails on Ubuntu 15.04

Karel Černohorsk (JIRA) issues at jboss.org
Wed Nov 4 03:59:00 EST 2015


    [ https://issues.jboss.org/browse/WFLY-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125191#comment-13125191 ] 

Karel Černohorsk commented on WFLY-4570:
----------------------------------------

[~gesker]:
The service starts fine with symbolic link to the configuration file (e.g. /etc/default/wildfly -> /opt/wildfly/bin/init.d/wildfly.conf).
But for the script (e.g. /etc/init.d/wildfly -> /opt/wildfly/bin/init.d/wildfly-init-debian.sh) it needs a hard link (at least, or a plain copy). With symlink it fails to see functions included by `. /lib/lsb/init-functions`.

[~guirald]:
There's no need to rewrite the script, the functions `pidofproc` and `log_*` are available on Ubuntu and included from `. /lib/lsb/init-functions`. The issue stems probably from some user / env issue (root vs. wildfly) by symlinking the script. And, such a simple replacement of pidofproc by pidof (as in your script version) is not quite reliable / complete, due to status codes mismatch.

> wildfly-init-debian.sh fails on Ubuntu 15.04
> --------------------------------------------
>
>                 Key: WFLY-4570
>                 URL: https://issues.jboss.org/browse/WFLY-4570
>             Project: WildFly
>          Issue Type: Bug
>    Affects Versions: 9.0.0.Beta2, 9.0.0.CR1
>         Environment: Ubuntu 15.04, Oracle JDK_1.8.0_45-b14
>            Reporter: Dennis Gesker
>             Fix For: Awaiting Volunteers
>
>
> Init script "wildfly-init-debian.sh" fails on Ubuntu 15.04 but standalone.sh works fine.  Env is jdk_1.8.0_45-b14 and wildfly_9.0.0.Beta2. The error returned is:
> Failed to start wildfly.service: Unit wildfly.service failed to load: No such file or directory.
> Had no issue with the above script on Ubuntu 14.04 so guessing a change in Ubuntu ("Upstart" Maybe?) But, I'm far from an upstart or bash expert. bash -x seems to at least create the pid.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list