* [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander
@ 2011-07-25 9:11 Benedikt Boehm (hollow)
0 siblings, 0 replies; 5+ messages in thread
From: Benedikt Boehm (hollow) @ 2011-07-25 9:11 UTC (permalink / raw
To: gentoo-commits
hollow 11/07/25 09:11:47
Added: chef-expander
Log:
initial ebuild. required by app-admin/chef-solr-0.10.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Revision Changes Path
1.1 app-admin/chef-expander/files/initd/chef-expander
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.1&content-type=text/plain
Index: chef-expander
===================================================================
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net chef-solr
}
CHEF_EXPANDER_BINARY=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
CHEF_EXPANDER_PIDFILE=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
CHEF_EXPANDER_LOGFILE=${CHEF_EXPANDER_LOGFILE:-/var/log/chef/expander.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}
CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
fix_owners() {
for i in ${CHEF_DIRS[@]} ${CONFIGFILE}; do
chown ${CHEF_USER}:${CHEF_GROUP} ${i}
done
chmod 0600 ${CONFIGFILE}
}
start() {
ebegin "Starting Chef Expander"
fix_owners
start-stop-daemon --start --quiet --chuid ${CHEF_USER}:${CHEF_GROUP} \
--pidfile ${CHEF_EXPANDER_PIDFILE} --exec ${CHEF_EXPANDER_BINARY} \
-- -d -P ${CHEF_EXPANDER_PIDFILE} -L ${CHEF_EXPANDER_LOGFILE} \
-c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}
eend $?
}
stop() {
ebegin "Shutting down Chef Expander"
start-stop-daemon --stop --quiet --pidfile ${CHEF_EXPANDER_PIDFILE}
eend $?
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander
@ 2012-01-29 12:17 Benedikt Boehm (hollow)
0 siblings, 0 replies; 5+ messages in thread
From: Benedikt Boehm (hollow) @ 2012-01-29 12:17 UTC (permalink / raw
To: gentoo-commits
hollow 12/01/29 12:17:26
Modified: chef-expander
Log:
version bump wrt #396693
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Revision Changes Path
1.2 app-admin/chef-expander/files/initd/chef-expander
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?r1=1.1&r2=1.2
Index: chef-expander
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- chef-expander 25 Jul 2011 09:11:47 -0000 1.1
+++ chef-expander 29 Jan 2012 12:17:26 -0000 1.2
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -25,15 +25,19 @@
start() {
ebegin "Starting Chef Expander"
fix_owners
- start-stop-daemon --start --quiet --chuid ${CHEF_USER}:${CHEF_GROUP} \
- --pidfile ${CHEF_EXPANDER_PIDFILE} --exec ${CHEF_EXPANDER_BINARY} \
- -- -d -P ${CHEF_EXPANDER_PIDFILE} -L ${CHEF_EXPANDER_LOGFILE} \
- -c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}
+ start-stop-daemon --start \
+ --pidfile ${CHEF_EXPANDER_PIDFILE} \
+ --user ${CHEF_USER}:${CHEF_GROUP} \
+ --exec ${CHEF_EXPANDER_BINARY} \
+ -- \
+ -d -P ${CHEF_EXPANDER_PIDFILE} -L ${CHEF_EXPANDER_LOGFILE} \
+ -c ${CONFIGFILE} \
+ ${CHEF_EXPANDER_OPTS}
eend $?
}
stop() {
ebegin "Shutting down Chef Expander"
- start-stop-daemon --stop --quiet --pidfile ${CHEF_EXPANDER_PIDFILE}
+ start-stop-daemon --stop --pidfile ${CHEF_EXPANDER_PIDFILE}
eend $?
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander
@ 2012-12-20 9:57 Benedikt Boehm (hollow)
0 siblings, 0 replies; 5+ messages in thread
From: Benedikt Boehm (hollow) @ 2012-12-20 9:57 UTC (permalink / raw
To: gentoo-commits
hollow 12/12/20 09:57:36
Modified: chef-expander
Log:
improve init script
(Portage version: 2.2.0_alpha147/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.3 app-admin/chef-expander/files/initd/chef-expander
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?r1=1.2&r2=1.3
Index: chef-expander
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- chef-expander 29 Jan 2012 12:17:26 -0000 1.2
+++ chef-expander 20 Dec 2012 09:57:36 -0000 1.3
@@ -2,42 +2,21 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-depend() {
- need net chef-solr
-}
-
-CHEF_EXPANDER_BINARY=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
-CHEF_EXPANDER_PIDFILE=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
CHEF_EXPANDER_LOGFILE=${CHEF_EXPANDER_LOGFILE:-/var/log/chef/expander.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
-CHEF_USER=${CHEF_USER:-chef}
-CHEF_GROUP=${CHEF_GROUP:-chef}
-CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
+pidfile=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
+command=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
+command_args="-d -P ${pidfile} -L ${CHEF_EXPANDER_LOGFILE} -c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}"
-fix_owners() {
- for i in ${CHEF_DIRS[@]} ${CONFIGFILE}; do
- chown ${CHEF_USER}:${CHEF_GROUP} ${i}
- done
- chmod 0600 ${CONFIGFILE}
-}
+user=${CHEF_USER:-chef}
+group=${CHEF_GROUP:-chef}
-start() {
- ebegin "Starting Chef Expander"
- fix_owners
- start-stop-daemon --start \
- --pidfile ${CHEF_EXPANDER_PIDFILE} \
- --user ${CHEF_USER}:${CHEF_GROUP} \
- --exec ${CHEF_EXPANDER_BINARY} \
- -- \
- -d -P ${CHEF_EXPANDER_PIDFILE} -L ${CHEF_EXPANDER_LOGFILE} \
- -c ${CONFIGFILE} \
- ${CHEF_EXPANDER_OPTS}
- eend $?
+depend() {
+ need net chef-solr
}
-stop() {
- ebegin "Shutting down Chef Expander"
- start-stop-daemon --stop --pidfile ${CHEF_EXPANDER_PIDFILE}
- eend $?
+start_pre() {
+ checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef
+ checkpath -q -f -m 0600 ${CONFIGFILE}
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander
@ 2013-02-10 20:02 Benedikt Boehm (hollow)
0 siblings, 0 replies; 5+ messages in thread
From: Benedikt Boehm (hollow) @ 2013-02-10 20:02 UTC (permalink / raw
To: gentoo-commits
hollow 13/02/10 20:02:16
Modified: chef-expander
Log:
version bump
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.4 app-admin/chef-expander/files/initd/chef-expander
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander?r1=1.3&r2=1.4
Index: chef-expander
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-expander/files/initd/chef-expander,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- chef-expander 20 Dec 2012 09:57:36 -0000 1.3
+++ chef-expander 10 Feb 2013 20:02:16 -0000 1.4
@@ -1,22 +1,27 @@
#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
CHEF_EXPANDER_LOGFILE=${CHEF_EXPANDER_LOGFILE:-/var/log/chef/expander.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
+CHEF_USER=${CHEF_USER:-chef}
+CHEF_GROUP=${CHEF_GROUP:-chef}
pidfile=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
command=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
command_args="-d -P ${pidfile} -L ${CHEF_EXPANDER_LOGFILE} -c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}"
-
-user=${CHEF_USER:-chef}
-group=${CHEF_GROUP:-chef}
+start_stop_daemon_args="--user ${CHEF_USER} --group ${CHEF_GROUP}"
depend() {
need net chef-solr
}
start_pre() {
- checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef
- checkpath -q -f -m 0600 ${CONFIGFILE}
+ checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
+ /etc/chef \
+ /etc/chef/certificates \
+ /var/{lib,log,run}/chef
+
+ checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
+ ${CONFIGFILE}
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander
@ 2015-04-25 9:00 Hans de Graaff (graaff)
0 siblings, 0 replies; 5+ messages in thread
From: Hans de Graaff (graaff) @ 2015-04-25 9:00 UTC (permalink / raw
To: gentoo-commits
graaff 15/04/25 09:00:02
Removed: chef-expander
Log:
Remove masked app-admin/chef packages.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-25 9:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20 9:57 [gentoo-commits] gentoo-x86 commit in app-admin/chef-expander/files/initd: chef-expander Benedikt Boehm (hollow)
-- strict thread matches above, loose matches on Subject: below --
2015-04-25 9:00 Hans de Graaff (graaff)
2013-02-10 20:02 Benedikt Boehm (hollow)
2012-01-29 12:17 Benedikt Boehm (hollow)
2011-07-25 9:11 Benedikt Boehm (hollow)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox