diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2012-12-20 10:01:33 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2012-12-20 10:01:33 +0000 |
commit | 98819476fbe33e89faad45f48f6082b754c1d500 (patch) | |
tree | 216ff29fe32aa16347b16c86de8034575d15beed /app-admin/chef-server-webui | |
parent | Stable for amd64, wrt bug #447338 (diff) | |
download | historical-98819476fbe33e89faad45f48f6082b754c1d500.tar.gz historical-98819476fbe33e89faad45f48f6082b754c1d500.tar.bz2 historical-98819476fbe33e89faad45f48f6082b754c1d500.zip |
improve init script
Package-Manager: portage-2.2.0_alpha147/cvs/Linux x86_64
Diffstat (limited to 'app-admin/chef-server-webui')
-rw-r--r-- | app-admin/chef-server-webui/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/chef-server-webui/Manifest | 4 | ||||
-rw-r--r-- | app-admin/chef-server-webui/files/initd/chef-server-webui | 11 |
3 files changed, 10 insertions, 11 deletions
diff --git a/app-admin/chef-server-webui/ChangeLog b/app-admin/chef-server-webui/ChangeLog index 4835ba969bb3..faa6829a35d1 100644 --- a/app-admin/chef-server-webui/ChangeLog +++ b/app-admin/chef-server-webui/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/chef-server-webui # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/chef-server-webui/ChangeLog,v 1.13 2012/12/17 13:11:23 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/chef-server-webui/ChangeLog,v 1.14 2012/12/20 10:01:29 hollow Exp $ + + 20 Dec 2012; Benedikt Böhm <hollow@gentoo.org> + files/initd/chef-server-webui: + improve init script *chef-server-webui-10.16.2 (17 Dec 2012) diff --git a/app-admin/chef-server-webui/Manifest b/app-admin/chef-server-webui/Manifest index d739f7b7468e..7932b6dacce2 100644 --- a/app-admin/chef-server-webui/Manifest +++ b/app-admin/chef-server-webui/Manifest @@ -1,9 +1,9 @@ AUX confd/chef-server-webui 643 SHA256 fcbcd73c2a83a732ab3446f21feeec5fefbfc7fe31748429394b946f0fee7acf SHA512 ee1f156376640ac743224ed3d1a131645807189c8f7b7dfea04eb8d4a93184b889364c8687498704168d761dc3621f17e74aa34cbe0a5636622e1905aecb426a WHIRLPOOL 75a93953e25eeb785d7aeff86b60c654e968a56b3d87a844395b502f937cf39cab83536bdefabeed1492724424c24ef25dbb835113f20217fdbc1ab44726eef0 -AUX initd/chef-server-webui 1234 SHA256 d4e4fdf4442920742af85e3ed115d2e065872f38195b7b8b2d8a32e9075c65a1 SHA512 bf8864dcb67404aa6fb2051d6d1a136aefdf417c32d91391a559113f97006d21a4941bae1d05eb197627e51c2fc9ee6a6e81fc8e25b8e549464380736f1560a3 WHIRLPOOL 7e3e3a3a6c2e3967cb44203a3565575622228c4e6f65dd3caa4e9375fce0208612e1b7e6676fddf983cbeeda98d53ce0fa995c0ca3b9ecf8146066be63986355 +AUX initd/chef-server-webui 1156 SHA256 b396efe26da47e5fc56a6d9546b818ef637a9ad3dbc782cc9e6b8211b57d7ec1 SHA512 dbd95930a29e4b5228d383fca50c507bee56789a88689eb04623b4c399745499403a49734001b8bc6ec99aa8a6e21888ac024e327e2ca39c9e1495bcf4de3c53 WHIRLPOOL 8a1992503df46421de565f2b7ae27adca5f2cebdfda87a6dde3f5888d2ec09032e89c12da9cd44cc8762df1e407c46dba3ace62365f70044ae37add88bb61692 AUX webui.rb 4126 SHA256 29ee02a156e5849c234cfdfe968024d422f8c428839b650476904c5799a58917 SHA512 9961e4c3205e62db6f1e8b70ce112ea6487a06d09e2b5afa4edf25d5ae11ff745eb60f9580c92ac6b753a741969e6b6d49d6f9f6f6aae6f1270da0c74ba8d390 WHIRLPOOL 8cd0baabbc1ac24eb503240f16fca81a3a86e819629584c3acb550359ae7b9b8c58b5905d0ecafbf542fd911aaba419ef28a99bcc471107c7b4c2c1e4798c685 DIST chef-server-webui-10.12.0.gem 181248 SHA256 5e276b25acd0a1080491f674d4b83983ee7537e195898e4bcb7a1e77dfb53caa SHA512 1217060104ae474ec42c02452f0834e25f0172885def6f19e20424bd24bf2730aeac855b35deac458d15f78176e39bdc7c64179f6fc25955afc5a6ad9582cb0f WHIRLPOOL ba1dc086cee27cb8cc7042da3f98c500a680bf70438f8e1e0aacaa1aee13d3b5ddd1387ce4a3b1a0a8b4570f786b095e650b83941f74189646badc63e05454d5 DIST chef-server-webui-10.16.2.gem 184832 SHA256 21978693a2343fc2fbc2e909fea8e296944bc7471559c8b85ff01f28b60e4585 SHA512 25eb8c743c8e6bc22ceacacaa34f459e6abb3d5017afd051bb2ebaa85af289bedc11d3f28ddeee73ddc1ea32f5308a906c33ab8a5dbad887e1f8da3bdf5ab67b WHIRLPOOL d23529b2ac0bb260337cdbf782e6d8ff521849c149a5a24f9d86c1a8d6096b1c7bbe256c4e2529fec5152da5963ca27fc6ee647e238c83a9a05a2bd7f2e95111 EBUILD chef-server-webui-10.12.0.ebuild 1856 SHA256 cc95129dd644c9752cebef0af4170d88569e0442282fcce02d90ffc8bf8a681e SHA512 2e48420b68af0431f6c2b012c04ca731376b8196bbe04fc4b0dcf28b644f078bf9ef4d4fe66e2a78ad11f9d7c27490e49066b82e0f9112d8d2cce0599beb73a7 WHIRLPOOL 033dedb03fb1efa99cd04cad7e29ecc1ee9b9460b090c898c4f49bd165091d9aeff2fac43525f9bca2d11ed25feeb15fa6f185bf4c8d06d76f917fd9488aba4c EBUILD chef-server-webui-10.16.2.ebuild 1856 SHA256 b2b128197850cac2a90530671acd215ef7459209878f802ad4b15c8afad08428 SHA512 f97a66a47a52c34cb900b4c9d25084de5b8a073b69de75056edd1c11577faefcb0002d37c01463d0f6b83f10b1785b5014fed56cae62953e55b814d5d64c713a WHIRLPOOL 6344c7f0f381e7e1c6ec9bcb4eca7ef6d5c8870418fbdf9270509d33059b9d900143fbe8d6656347f340623ca2c220c56033f51c78437ae4bf79280225aa2e37 -MISC ChangeLog 2720 SHA256 74cb4eee60766501d6faa9e62d1ff55f96d1fd7b3ba6fead9c7a1bbf80af75a3 SHA512 f4bb3c6b2d163d66e3686bc84d766dcc63a3725586f33fd3253bd17bd5c9b49d5b4f4a47d56087c6355f0d62fac04a30a054ef8f2ca70993f68d4a4501045f4b WHIRLPOOL 99b58fd98edfe27152aa9e45a94b02aa09064ac8738735d534dc1dc4a8d5b6ab4dfc9fe5f8f155df543a91038c229fef1425d089e958ea02ebb6a3d595076b3e +MISC ChangeLog 2826 SHA256 08a10767fe397ed402e0716a572e635bb8864aecf6aff31b9eaeb95945c9f152 SHA512 2d3c9bcfe58ffa99b3a8dc4849b3bc7b394cbe52342095c7793315e8365133d9b544a8b865fb9566f61ed32d7336a81f34c059f51c321c7fda53a266a9f8fba1 WHIRLPOOL 2efb3eac623abc6c491b77fc0f37c1569a4e7c59d5b2ab69da3cc71339b14ac712a57d114c5a47edbeca4ac256f1aa46c61d2c99020f22940715709158cec1fb MISC metadata.xml 234 SHA256 9f3ea84c59dfbd2d2dd7f1e6f0b959540e27cc9caad4f77e6e76774ce98505a6 SHA512 15e1df0d58c775f2bfe4118944fec382ecfde7634864f65e06098d6ec66a5554d36932f6b3771dca38798e7b5b01d60a1c281ef1137379e189ed42fb40b670d7 WHIRLPOOL 90bf4a8155c532a86fb064f50485c79778189ac4f0d955a7ffb717d52bf9a23190131de6688da54a2e09f3bce161e8d2150cbef85a9c406a1a191f2d9cf6df26 diff --git a/app-admin/chef-server-webui/files/initd/chef-server-webui b/app-admin/chef-server-webui/files/initd/chef-server-webui index 53449359dd9c..4f239b636647 100644 --- a/app-admin/chef-server-webui/files/initd/chef-server-webui +++ b/app-admin/chef-server-webui/files/initd/chef-server-webui @@ -15,18 +15,13 @@ CLUSTER_NODES=${CLUSTER_NODES:-1} 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_pre() { + checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef + checkpath -q -f -m 0600 ${CONFIGFILE} } start() { ebegin "Starting Chef server web interface" - fix_owners ${CHEF_SERVER_WEBUI_BINARY} -d -P ${CHEF_SERVER_WEBUI_PIDFILE} --name \ chef-server-webui -C ${CONFIGFILE} -u ${CHEF_USER} -G ${CHEF_GROUP} \ -c ${CLUSTER_NODES} -L ${CHEF_SERVER_WEBUI_LOGFILE} ${CHEF_SERVER_WEBUI_OPTS} > /dev/null |