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

Add warning to osgi:shutdown to avoid inadvertently shutting down the container

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.1.6, 2.2.2, 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When being remotely logged into the container, people can mistakenly use osgi:shutdown to exit the console instead of pressing Ctrl-D, thereby inadvertently shutting down the container. It would be good if the shell would at least ask for a confirmation to ensure people really know what they're doing (not sure if we can or even should discriminate between remote and local logons to the shell for this).

        Activity

        Hide
        jgoodyear Jamie goodyear added a comment -

        Fixed in Apache Karaf 2.2.2.

        Show
        jgoodyear Jamie goodyear added a comment - Fixed in Apache Karaf 2.2.2.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        Now the shutdown command supports the f/-force option and the time argument to delay the shutdown.

        All branches have been updated, and the user guide as well.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - Now the shutdown command supports the f/ -force option and the time argument to delay the shutdown. All branches have been updated, and the user guide as well.
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        +1 for the -f option

        Show
        achim_nierbeck Achim Nierbeck added a comment - +1 for the -f option
        Hide
        pieber Andreas Pieber added a comment -

        +1; I would like to have the -f option

        Show
        pieber Andreas Pieber added a comment - +1; I would like to have the -f option
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        It could be helpful for the users who exactly know what they do to have a -f / --force option to not display the confirmation message.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - It could be helpful for the users who exactly know what they do to have a -f / --force option to not display the confirmation message.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        Fixed on trunl: revision 1125277.
        Fixed on karaf-2.2.x branch: revision 1125298.
        Fixed on karaf-2.1.x branch: revision 1125300.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - Fixed on trunl: revision 1125277. Fixed on karaf-2.2.x branch: revision 1125298. Fixed on karaf-2.1.x branch: revision 1125300.

          People

          • Assignee:
            jbonofre Jean-Baptiste Onofré
            Reporter:
            gertvanthienen Gert Vanthienen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development