Re: BSD vs SysV init scripts

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: plug-discuss
Subject: Re: BSD vs SysV init scripts
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.

ciao,

der.hans
-- 
#  https://www.LuftHans.com/    http://www.AZOTO.org/
#  "I have faith in debian-legal." -- Ted Gould
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss