From: | "Aaron Swenson (titanofold)" <titanofold@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-db/pgagent/files: pgagent.initd pgagent.confd |
Date: | Sat, 28 Apr 2012 18:34:22 |
Message-Id: | 20120428183411.789FB2004C@flycatcher.gentoo.org |
1 | titanofold 12/04/28 18:34:11 |
2 | |
3 | Added: pgagent.initd pgagent.confd |
4 | Log: |
5 | Initial commit. Bug 292767. |
6 | |
7 | (Portage version: 2.1.10.49/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-db/pgagent/files/pgagent.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgagent/files/pgagent.initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgagent/files/pgagent.initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: pgagent.initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2012 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/dev-db/pgagent/files/pgagent.initd,v 1.1 2012/04/28 18:34:11 titanofold Exp $ |
21 | |
22 | PGAGENTOPT="-t ${PGA_POLL} -r ${PGA_RETRY} -s ${PGA_LOG} -l ${PGA_LEVEL}" |
23 | |
24 | PGOPT="hostaddr=${PG_HOST} dbname=${PG_DBNAME} user=${PG_USER}" |
25 | |
26 | depend() { |
27 | use net |
28 | need postgresql |
29 | } |
30 | |
31 | start() { |
32 | ebegin "Starting pgagent" |
33 | start-stop-daemon --start --exec /usr/bin/pgagent -- ${PGAGENTOPT} ${PGOPT} |
34 | eend $? |
35 | } |
36 | |
37 | stop() { |
38 | ebegin "Stopping pgagent" |
39 | start-stop-daemon --stop --name pgagent |
40 | eend $? |
41 | } |
42 | |
43 | |
44 | |
45 | 1.1 dev-db/pgagent/files/pgagent.confd |
46 | |
47 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgagent/files/pgagent.confd?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgagent/files/pgagent.confd?rev=1.1&content-type=text/plain |
49 | |
50 | Index: pgagent.confd |
51 | =================================================================== |
52 | # Pool time interval |
53 | PGA_POLL="10" |
54 | |
55 | # Retry period |
56 | PGA_RETRY="30" |
57 | |
58 | # Log file |
59 | PGA_LOG="/var/log/pgagent.log" |
60 | |
61 | # Logging verbosity |
62 | # ERROR=0, WARNING=1, DEBUG=2 |
63 | PGA_LEVEL="1" |
64 | |
65 | # Server parameters |
66 | # Host address |
67 | PG_HOST="localhost" |
68 | |
69 | # DB name |
70 | PG_DBNAME="postgres" |
71 | |
72 | # Username |
73 | PG_USER="postgres" |