From: | "Benedikt Boehm (hollow)" <hollow@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/chef/files/initd: chef-client |
Date: | Sat, 03 Jul 2010 12:36:15 |
Message-Id: | 20100703123613.5268F2C5F4@corvid.gentoo.org |
1 | hollow 10/07/03 12:36:13 |
2 | |
3 | Added: chef-client |
4 | Log: |
5 | initial ebuild, thanks to Gábor Vészi |
6 | (Portage version: 2.2_rc67/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-admin/chef/files/initd/chef-client |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/initd/chef-client?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/initd/chef-client?rev=1.1&content-type=text/plain |
13 | |
14 | Index: chef-client |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2010 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | |
20 | depend() { |
21 | need net |
22 | } |
23 | |
24 | CHEF_CLIENT_BINARY=${CHEF_CLIENT_BINARY:-/usr/bin/chef-client} |
25 | CHEF_CLIENT_PIDFILE=${CHEF_CLIENT_PIDFILE:-/var/run/chef/client.pid} |
26 | CONFIGFILE=${CONFIGFILE:-/etc/chef/client.rb} |
27 | INTERVAL=${INTERVAL:-1800} |
28 | SPLAY=${SPLAY:-20} |
29 | |
30 | start() { |
31 | ebegin "Starting Chef client" |
32 | start-stop-daemon --start --quiet --pidfile ${CHEF_CLIENT_PIDFILE} \ |
33 | --exec ${CHEF_CLIENT_BINARY} -- -d -c ${CONFIGFILE} \ |
34 | -i ${INTERVAL} -s ${SPLAY} ${CHEF_CLIENT_OPTS} |
35 | eend $? |
36 | } |
37 | |
38 | stop() { |
39 | ebegin "Shutting down Chef client" |
40 | start-stop-daemon --stop --quiet --pidfile ${CHEF_CLIENT_PIDFILE} |
41 | eend $? |
42 | } |