On Mon, 2005-01-24 at 17:12 -0700, der.hans wrote: > Am 24. Jan, 2005 schwätzte Craig White so: > > > I don't think it was chkconfig that did that...it was the people writing > > the SysV startup scripts not knowing where to hang the conf stuff. > > chkconfig used to gets its configuration info from comments in the init > scripts. > > $ cat /etc/redhat-release > Red Hat Linux release 9 (Shrike) > $ head /etc/init.d/httpd > #!/bin/bash > # > # httpd Startup script for the Apache HTTP Server > # > # 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 > > Out of chkconfig's manpage: > ### > 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. > ### > > Using comments in executables for config info is annoying. > > Don't know what those other lines are for. Hopefully they're actually > comments. ---- look up... ^ ^ ^ # chkconfig: - 85 15 # description: .... # processname: .... # config: /etc/httpd/conf/httpd.conf # config: /etc/sysconfig/httpd comments (1) for chkconfig to derive it's magic comments (2) for the user to locate where the config files for alteration. What could be clearer than that? Annoying? I suppose you could say that but very handy if you don't know where to look. This was a marvelous example. /etc/httpd/conf/httpd.conf is for application specific configuration and /etc/sysconfig/httpd is for daemon options (variables passed to start apache). But I guess what you are complaining about is the line... # chkconfig: - 85 15 which is meaningful to chkconfig - how it derives it's magic...it's juju - you would prefer that it not hide in commented line I guess. It's probably too late to change this now but you can now chalk this up to obtained knowledge and act accordingly. This is after all, an imperfect world. ;-) Craig --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss