Karaf
  1. Karaf
  2. KARAF-614

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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
        Jamie goodyear added a comment -

        Fixed in Apache Karaf 2.2.2.

        Show
        Jamie goodyear added a comment - Fixed in Apache Karaf 2.2.2.
        Hide
        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
        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 added a comment -

        +1 for the -f option

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

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

        Show
        Andreas Pieber added a comment - +1; I would like to have the -f option
        Hide
        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
        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
        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
        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:
            Jean-Baptiste Onofré
            Reporter:
            Gert Vanthienen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development