Tiger66639 / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Add chkconfig support to init.d script #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The init.d script needs a few lines telling the chkconfig script what runlevels 
to use. chkconfig is 
used by red hat, centos, and fedora.

Please add this to the init.d file:
# Comments to support chkconfig on RedHat Linux                                 

# chkconfig: 2345 85 15                                                         

# description: Xinc - Continuous Integration for PHP. 

Here's some background.
From Apache's file:
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#              HTML files and CGI.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd.pid

From mysqld:
# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine.

For more info:
http://forums.fedoraforum.org/archive/index.php/t-34221.html
From man chkconfig:
RUNLEVEL FILES
       Each  service which should be manageable by chkconfig needs two or more
       commented lines added to its init.d script. The first line  tells  chk-
       config  what  runlevels the service should be started in by default, as
       well as the start and stop priority levels. If the service should  not,
       by default, be started in any runlevels, a - should be used in place of
       the runlevels list.  The second line contains  a  description  for  the
       service,  and may be extended across multiple lines with backslash con-
       tinuation.

       For example, random.init has these three lines:
       # chkconfig: 2345 20 80
       # description: Saves and restores system entropy pool for \
       #              higher quality random number generation.
       This says that the random script should be started in levels 2,  3,  4,
       and 5, that its start priority should be 20, and that its stop priority
       should be 80.  You should be able to figure out  what  the  description
       says;  the \ causes the line to be continued.  The extra space in front
       of the line is ignored.

Original issue reported on code.google.com by kwie...@gmail.com on 13 Mar 2008 at 10:04

GoogleCodeExporter commented 9 years ago
Great! THanks!

Original comment by arnos...@gmail.com on 13 Mar 2008 at 10:26

GoogleCodeExporter commented 9 years ago

Original comment by arnos...@gmail.com on 2 May 2008 at 11:35

GoogleCodeExporter commented 9 years ago
Moving issues into the v2.0.2 queue

Original comment by jcaro...@gmail.com on 17 Jul 2008 at 2:07

GoogleCodeExporter commented 9 years ago
Issue 175 has been merged into this issue.

Original comment by opitz.al...@googlemail.com on 17 Aug 2011 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by opitz.al...@googlemail.com on 19 Aug 2011 at 1:55

GoogleCodeExporter commented 9 years ago
Fixed in Revision 453

Original comment by opitz.al...@googlemail.com on 28 Aug 2011 at 6:12