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

Wrapper service requires a shell

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.8, 2.3.0, 3.0.0
    • Fix Version/s: 2.2.9, 2.3.0, 3.0.0
    • Component/s: karaf-os-integration
    • Labels:
    • Environment:

      Linux

      Description

      The wrapper init script karaf-service cannot start the service if the RUN_AS_USER variable is set to an account
      without a login shell (e.g. /sbin/nologin).

      The error message returned is: "This account is currently not available."

      This patch adds the -s argument to the su command in the karaf-service script to provide a shell (/bin/sh)
      for executing the command.

        Attachments

        1. add_shell_to_su.patch
          0.7 kB
          Fredrik Kjellberg

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              frkj Fredrik Kjellberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: