Improvement Linux startup script

From: Rene Pijlman <rpijlman(at)wanadoo(dot)nl>
To: pgsql-patches(at)postgresql(dot)org
Subject: Improvement Linux startup script
Date: 2001-07-21 15:21:33
Message-ID: rp6jltoa64gr22fkgvraa4t2vat6kbe612@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hello,

The linux startup script contrib/start-scripts/linux in PostgreSQL
7.1.2 can be made easier to install by adding a few comment lines:

diff /usr/local/src/postgresql-7.1.2/contrib/start-scripts/linux
/etc/init.d/postgresql
2a3,5
> # chkconfig: 2345 98 02
> # description: PostgreSQL RDBMS
>
15c18,19
< # Or check out the chkconfig program, if you have it.
---
> # Or, if you have chkconfig, simply:
> # chkconfig --add postgresql

Tested on Red Hat Linux 7.1 with PostgreSQL 7.1.2.

Relevant part of the 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 chkconfig 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 continuation.
:
: 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 lev­
: els 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.

Regards,
René Pijlman

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-07-21 18:52:22 Re: [PATCHES] Re: [PATCH] Cleanup of JDBC character encoding
Previous Message Bruce Momjian 2001-07-21 04:33:43 Re: [BUGS] WIN32 Non Blocking