Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1525

Can't start karaf using symbolic link

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Lithium
    • None
    • karaf
    • None
    • Operating System: All
      Platform: All

    • 6027

    Description

      When using symbolic link, e.g.

      root@foo:/usr/bin# ls -ls karaf
      1 lrwxrwxrwx 1 root root 27 Jun 2 15:42 karaf -> /opt/opendaylight/bin/karaf

      karaf fail to start because of wrong DIRNAME, as DIRNAME is based on $0 being the path of the executed file.
      So in this case, DIRENAME=usr/bin, which doesn't work.

      Karaf script is setting multiple env variable to be able to start correctly, and all of those variables are based on the KARAF_HOME, that is tied to the DIRNAME.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            adetalhouet Alexis de Talhouƫt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: