Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2734

Karaf service wrapper not working on Raspberry Pi

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.3
    • None
    • None
    • Rasbian Wheezy 3.10

    Description

      Hello,

      I tried to install the Karaf service wrapper on a Raspberry Pi as described on this site http://karaf.apache.org/manual/latest-2.3.x/users-guide/wrapper.html. There it is said that it should work with any distribution.

      Unfortunately if I try to execute the created script with /etc/init.d/KARAF-service start I get following error:

      $ sudo update-rc.d KARAF-service defaults
      update-rc.d: using dependency based boot sequencing
      insserv: warning: script 'K01karaf-service' missing LSB tags and overrides
      insserv: warning: script 'KARAF-service' missing LSB tags and overrides
      insserv: warning: script 'karaf-service' missing LSB tags and overrides

      $ /etc/init.d/KARAF-service start
      Starting Karaf...
      /home/pi/apache-karaf-2.3.3/bin/KARAF-wrapper: 1: /home/pi/apache-karaf-2.3.3/bin/KARAF-wrapper: Syntax error: "(" unexpected

      If I then change the first line of KARAF-service from #! / bin / sh to #! / bin / bash I don't get that error anymore but another one:

      $ /etc/init.d/KARAF-service start Starting Karaf...
      /etc/init.d/KARAF-service: line 417: /home/pi/apache-karaf-2.3.3/bin/KARAF-wrapper: cannot execute binary file
      /etc/init.d/KARAF-service: line 417: /home/pi/apache-karaf-2.3.3/bin/KARAF-wrapper: Success

      $ /etc/init.d/KARAF-service status
      Karaf is not running.

      My assumption is that the service wrapper is not working, because the Raspberry Pi is build on an ARM architecture, rather than an intel one, which seems to be not supported.

      Could you please help me fix this issue as it's important for me to be able to run Karaf as a service.

      Best regards.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              st.huber Stephan Huber
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified