Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.2
-
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
- chkconfig: 345 20 80
- 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)