🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.os.linux
Article #11800

Re: ��ϵͳ����ʱ����Զ������Լ���Ӧ�ó���

#11800
From: Goodwu
Date: Tue, 03 Dec 2002 02:47
67 lines
3907 bytes
��������redhat�Լ��ģ�����������ͦ�����
����chkconfig��man page

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.





�����Ǵ�lsb����Ū������



Installation and removal of init.d files
An init.d file is installed by copying it into /etc/init.d (which may be a
symlink to another location). This can be done by the package installer.
During the package's postinstall script, the program
"/usr/lib/lsb/install_initd" configures the distribution's boot script
system to call the package's init.d file at the appropriate time.

The install_initd program takes a single argument, the pathanme to the
/etc/init.d file. For example:

	/usr/lib/lsb/install_initd /etc/init.d/example.com-coffeed

When a software package is removed, the package's preuninstall script shall
call /usr/lib/lsb/remove_initd and pass the pathname to the /etc/init.d
file. The package manager is still responsible for removing the /etc/init.d
file; the remove_initd program is provided in case the distribution needs to
clean up any other modifications in the distribution's boot script system
that might have been made by the install_initd program. For example:

	/usr/lib/lsb/remove_initd /etc/init.d/example.com-coffeed

There should be a tool available to the user (e.g., RedHat's chkconfig)
which can be used by the system administrator to easily manipulate at which
init levels a particular init.d script is started or stopped. This
specification currently does not specify such an interface, however.
Technical Details
Message-ID: <3decfc43$1@news.cn99.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!News.Newsfan.Net
References: <3dec0e04@News.Newsfan.Net> <3dece4d7@News.Newsfan.Net> <3dece797@News.Newsfan.Net> <3decef3a$1@News.Newsfan.Net> <3decf44d$1@News.Newsfan.Net> <3decf9d0$1@news.cn99.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10b277,67047a30b162d32e
X-Google-Attributes: gid10b277,public
X-Google-ArrivalTime: 2002-12-02 21:08:47 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!News.Newsfan.Net
From: "Goodwu" <good_wu@hotmail.com>
Newsgroups: cn.comp.os.linux
Subject: Re: ��ϵͳ����ʱ����Զ������Լ���Ӧ�ó���
Date: 3 Dec 2002 10:47:31 +0800
Organization: News.Newsfan.Net
Lines: 69
Message-ID: <3decfc43$1@news.cn99.com>
References: <3dec0e04@News.Newsfan.Net> <3dece4d7@News.Newsfan.Net> <3dece797@News.Newsfan.Net> <3decef3a$1@News.Newsfan.Net> <3decf44d$1@News.Newsfan.Net> <3decf9d0$1@news.cn99.com>
NNTP-Posting-Host: 218.21.101.40
X-Trace: mail.cn99.com 1038892120 75064 218.21.101.40 (3 Dec 2002 05:08:40 GMT)
X-Complaints-To: usenet@news.cn99.com
NNTP-Posting-Date: Tue, 3 Dec 2002 05:08:40 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106