Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-655

Add chkconfig support to the starting script

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • Core system
    • None
    • Fedora Core & any RedHat-based system

    Description

      I'm using Fedora Core 4 and wanted to start Continuum on startup, so I followed the instructions below:

      http://maven.apache.org/continuum/guides/mini/guide-linux-boot.html

      FC (and any RH-based distro) doesn't have the update-rc.d script; instead, they have chkconfig. So, I created the link on /etc/rc.d and tried to enable continuum on chkconfig, but it failed:

      [root@localhost init.d]# chkconfig --add continuum
      service continuum does not support chkconfig

      Looking at the shell script, it's missing the chkconfig commentaries, so I added them:

      #! /bin/sh

      1. chkconfig: 345 20 80
      2. description: Maven Continuum server

      Now everything is fine:

      [root@localhost init.d]# chkconfig --add continuum

      [root@localhost init.d]# chkconfig continuum on
      [root@localhost init.d]# service continuum start
      Starting continuum...

      I could provide a patch, but I don't know how the script is generated. So, long story short, this issue requires 2 changes:

      • add the comment above in the run.sh script (or whatever generates it)
      • update the documentation (URL above)

      Attachments

        1. chkconfig_install.sh
          1 kB
          Felipe Leme
        2. CONTINUUM-655.patch
          1 kB
          Felipe Leme

        Activity

          People

            evenisse Emmanuel Venisse
            felipeal Felipe Leme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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