Update the remote agents wrapper start/stop script (bamboo-agent.sh) to make it work with Linux Systemd.

XMLWordPrintable

    • 1
    • 2

      Bamboo agent service can be started and stopped by hand using service bamboo-agent [start|stop|status] etc, but systemd does not recognizes the service, so it cannot be registered for startup at boot time.

      It seems Tanuki Software addressed the systemd/script issue on Wrapper version 3.5.26: Add the ability to control the service with systemd using the script file.
      "sh.script.in" from Wrapper version 3.5.26

      #! /bin/sh
      
      #
      # Copyright (c) 1999, 2014 Tanuki Software, Ltd.
      # http://www.tanukisoftware.com
      # All rights reserved.
      #
      # This software is the proprietary information of Tanuki Software.
      # You shall use it only in accordance with the terms of the
      # license agreement you entered into with Tanuki Software.
      # http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
      #
      # Java Service Wrapper sh script.  Suitable for starting and stopping
      #  wrapped Java applications on UNIX platforms.
      #
      
      #-----------------------------------------------------------------------------
      # These settings can be modified to fit the needs of your application
      # Optimized for use with version 3.5.26 of the Wrapper.
      
      # IMPORTANT - Please always stop and uninstall an application before making
      #             any changes to this file.  Failure to do so could remove the
      #             script's ability to control the application.
      ...
      # OS service management tool: flag for using systemd when installing
      USE_SYSTEMD=
      ...
      

      ...but Bamboo uses an older "Wrapper" version (Version 3.2.3-atlassian-1).

              Assignee:
              Alexey Chystoprudov
              Reporter:
              Augusto Santos (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: