From: Christian Zoffoli Date: Fri, 9 Mar 2007 16:26:14 +0000 (+0000) Subject: Added qdiskd init script. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d18481dc1101673a7df7b761a341bed410a12d54;p=gentoo.git Added qdiskd init script. Package-Manager: portage-2.1.2-r9 --- diff --git a/sys-cluster/cman/ChangeLog b/sys-cluster/cman/ChangeLog index 8c28eafba8af..278dd5a33317 100644 --- a/sys-cluster/cman/ChangeLog +++ b/sys-cluster/cman/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-cluster/cman # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/ChangeLog,v 1.31 2007/03/09 11:01:30 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/ChangeLog,v 1.32 2007/03/09 16:26:14 xmerlin Exp $ + + 09 Mar 2007; Christian Zoffoli +files/qdiskd.rc, + cman-1.03.00.ebuild, cman-1.04.00.ebuild: + Added qdiskd init script. *cman-1.04.00 (03 Mar 2007) diff --git a/sys-cluster/cman/Manifest b/sys-cluster/cman/Manifest index 45651de0b262..b90feed0d35e 100644 --- a/sys-cluster/cman/Manifest +++ b/sys-cluster/cman/Manifest @@ -13,6 +13,10 @@ AUX cman.rc 3960 RMD160 fe99635dfaaa315ce8aef68d8799273f7ccb908c SHA1 1ced6ea1db MD5 d7ed316a058c2c07f82ef3fdcfbb73e6 files/cman.rc 3960 RMD160 fe99635dfaaa315ce8aef68d8799273f7ccb908c files/cman.rc 3960 SHA256 150b7046dc1b1123b2a603a5e9aefe5c8dc13197f9b2564cee5de7be0a5fad4f files/cman.rc 3960 +AUX qdiskd.rc 597 RMD160 3956fb48ed288bf187c9ee41f2e366b2e3793002 SHA1 7aae5cb75e2af53bf34290cedbd6209851286fa2 SHA256 3e09dba64b2218bfc7c9bcb20431746cc35f0ef29ab1f84150546deba56eafff +MD5 3cb8ed7bf2ea2110ae0570ebcca56602 files/qdiskd.rc 597 +RMD160 3956fb48ed288bf187c9ee41f2e366b2e3793002 files/qdiskd.rc 597 +SHA256 3e09dba64b2218bfc7c9bcb20431746cc35f0ef29ab1f84150546deba56eafff files/qdiskd.rc 597 DIST cluster-1.02.00.tar.gz 1356451 RMD160 e9c0cdd1f5a7542c8a4ea38ccf6d057767269dc5 SHA1 d74cadb1ef21d1cfda333b20d7ef20272e0002d6 SHA256 de45885146f1481808f7a34af5e6b7e2042895a4e3844eaa6161f942345c7849 DIST cluster-1.03.00.tar.gz 1658274 RMD160 6fc16e2edba73dd1a83ecfad749b1553eca6d938 SHA1 c205d8ec034433c33f26724f7f69b0028d2a63d4 SHA256 e61c2438c7ee8d546aec9dd86ee1851c9a71f127c25ad1fb0c59eb4ed534e97b DIST cluster-1.04.00.tar.gz 1663798 RMD160 5b241f38123c9ad65faf2a9eda7aa3e2dabee839 SHA1 af3bb244a11a6a26c31b142009f6c1f771799337 SHA256 6f4b48e67383681ea6ad6e2907b56e755049816186375c4f2bcb9482da31c2c2 @@ -21,18 +25,18 @@ EBUILD cman-1.02.00-r1.ebuild 1318 RMD160 630941a89dcc25fb9e7bcaed412a18e74ee9cd MD5 33287d94e6e2622bf4ddbd12cee7cd71 cman-1.02.00-r1.ebuild 1318 RMD160 630941a89dcc25fb9e7bcaed412a18e74ee9cd86 cman-1.02.00-r1.ebuild 1318 SHA256 8578f5a76555f1ef45bfa7aee12638ad72bb399c68b022f7ca3963b66bba7c43 cman-1.02.00-r1.ebuild 1318 -EBUILD cman-1.03.00.ebuild 1162 RMD160 3fe43b5e3a1bb2dd3d2c146e89340af8c8c5918d SHA1 d8efbd135990fa024735cf1655ae7bcfdb5daa26 SHA256 dafa7808fd626ed80687596b672425d44b138a0a206a3b87e66372e4615e591e -MD5 15565135ed285bbb308ed7650c17cbc8 cman-1.03.00.ebuild 1162 -RMD160 3fe43b5e3a1bb2dd3d2c146e89340af8c8c5918d cman-1.03.00.ebuild 1162 -SHA256 dafa7808fd626ed80687596b672425d44b138a0a206a3b87e66372e4615e591e cman-1.03.00.ebuild 1162 -EBUILD cman-1.04.00.ebuild 1162 RMD160 45971c5a6e68c8b9ba38606e4214931637e8f586 SHA1 b21c5cc1ce7b2003e5cf041fd596665679cd8167 SHA256 b2edfd6dbbb5f0e9a260bbeead4445a113f8711a666e78239c7c93ef37e8f975 -MD5 2d2e2a2d83d84234fb79ab3dc14485f7 cman-1.04.00.ebuild 1162 -RMD160 45971c5a6e68c8b9ba38606e4214931637e8f586 cman-1.04.00.ebuild 1162 -SHA256 b2edfd6dbbb5f0e9a260bbeead4445a113f8711a666e78239c7c93ef37e8f975 cman-1.04.00.ebuild 1162 -MISC ChangeLog 3764 RMD160 f0c618d3145a767cadfb4d9b3d58bd23154241c3 SHA1 31e5253bf3dd165291cbff5f34288bba4d0bc69f SHA256 7281c1bc4d492153b212f9a2c1dc94622a2146b0aad50356da80bfed35f695ec -MD5 cbadef710ae9e5283ee8032ff686d317 ChangeLog 3764 -RMD160 f0c618d3145a767cadfb4d9b3d58bd23154241c3 ChangeLog 3764 -SHA256 7281c1bc4d492153b212f9a2c1dc94622a2146b0aad50356da80bfed35f695ec ChangeLog 3764 +EBUILD cman-1.03.00.ebuild 1209 RMD160 c3a9bbbb1dc4a7cf4dbe58dc0e15370c6420d8c9 SHA1 e5759647588b8c19b2cc0b33e23f49d9c975dde6 SHA256 b1ff7394d22116c70d675cb6968d158fd915d70078d51adac7c2e2e09b089701 +MD5 c5b7a6e19fe82871697f24c2097797c6 cman-1.03.00.ebuild 1209 +RMD160 c3a9bbbb1dc4a7cf4dbe58dc0e15370c6420d8c9 cman-1.03.00.ebuild 1209 +SHA256 b1ff7394d22116c70d675cb6968d158fd915d70078d51adac7c2e2e09b089701 cman-1.03.00.ebuild 1209 +EBUILD cman-1.04.00.ebuild 1209 RMD160 8e3f9961b3faad958db7dae3eafacff92ba24f97 SHA1 5d09b2a7504864d060b7665d64bb60467d2644bf SHA256 07e254f1c1ba6901dee2efb264a3034aba2da5a594a8361a380481a2dd582723 +MD5 90a2b3eb9b09c22e08267fc37fb5bae2 cman-1.04.00.ebuild 1209 +RMD160 8e3f9961b3faad958db7dae3eafacff92ba24f97 cman-1.04.00.ebuild 1209 +SHA256 07e254f1c1ba6901dee2efb264a3034aba2da5a594a8361a380481a2dd582723 cman-1.04.00.ebuild 1209 +MISC ChangeLog 3909 RMD160 4911ffdbd7ad61acdb1d79c705f5b158ae7eec79 SHA1 e1f4580f5699f986695b14c09dcbf862c0d96c18 SHA256 40de6fa16ecd12fc2fbd862658a02bef453273712438781d8e6ac25337055f3a +MD5 6ef409a66fa362a6f93be28e37950bf1 ChangeLog 3909 +RMD160 4911ffdbd7ad61acdb1d79c705f5b158ae7eec79 ChangeLog 3909 +SHA256 40de6fa16ecd12fc2fbd862658a02bef453273712438781d8e6ac25337055f3a ChangeLog 3909 MISC metadata.xml 223 RMD160 f9651ff0237b684fc6b65b83bb9140623b669a6d SHA1 033d2c47eb2bfe68e657ac2d68a7bfd28aab5b22 SHA256 b75b89c431f244420a0c81f9157c9fc656a919a8aac011778e1b410f70851bd3 MD5 a64b9a1937a5cfc2fbaf373521f65d47 metadata.xml 223 RMD160 f9651ff0237b684fc6b65b83bb9140623b669a6d metadata.xml 223 @@ -49,7 +53,7 @@ SHA256 358be21a647dcb0388ec46ddf8044de17a3fdb8c57b0f63e5bcc6340eb476d31 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) -iD8DBQFF8T6TgMUyd/cdjWsRAirHAJ42Zv+6qQQcp5rz3BeSrQcCRlLc0wCeNC01 -le7ptPXfF7lCCnSSo4o5k50= -=DHi/ +iD8DBQFF8Yq1gMUyd/cdjWsRAug5AJ4/zaI2oJqPSRuvfmKqx0qAXnYi6ACcD4He +MMlX/HPJEr8GEnk93v95gQA= +=6C0B -----END PGP SIGNATURE----- diff --git a/sys-cluster/cman/cman-1.03.00.ebuild b/sys-cluster/cman/cman-1.03.00.ebuild index cb6232c22d32..a71c7c950e5e 100644 --- a/sys-cluster/cman/cman-1.03.00.ebuild +++ b/sys-cluster/cman/cman-1.03.00.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.03.00.ebuild,v 1.3 2007/03/09 11:01:30 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.03.00.ebuild,v 1.4 2007/03/09 16:26:14 xmerlin Exp $ inherit eutils @@ -41,6 +41,8 @@ src_install() { newinitd ${FILESDIR}/${PN}.rc ${PN} || die newconfd ${FILESDIR}/${PN}.conf ${PN} || die + newinitd ${FILESDIR}/qdiskd.rc qdiskd || die + keepdir /etc/cluster || die } diff --git a/sys-cluster/cman/cman-1.04.00.ebuild b/sys-cluster/cman/cman-1.04.00.ebuild index 9e0ec5a7827b..36397542964e 100644 --- a/sys-cluster/cman/cman-1.04.00.ebuild +++ b/sys-cluster/cman/cman-1.04.00.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.04.00.ebuild,v 1.1 2007/03/09 11:01:30 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/cman-1.04.00.ebuild,v 1.2 2007/03/09 16:26:14 xmerlin Exp $ inherit eutils @@ -41,6 +41,8 @@ src_install() { newinitd ${FILESDIR}/${PN}.rc ${PN} || die newconfd ${FILESDIR}/${PN}.conf ${PN} || die + newinitd ${FILESDIR}/qdiskd.rc qdiskd || die + keepdir /etc/cluster || die } diff --git a/sys-cluster/cman/files/qdiskd.rc b/sys-cluster/cman/files/qdiskd.rc new file mode 100755 index 000000000000..8fd777bc790f --- /dev/null +++ b/sys-cluster/cman/files/qdiskd.rc @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/files/qdiskd.rc,v 1.1 2007/03/09 16:26:14 xmerlin Exp $ + +depend() { + use net + need cluster-manager +} + +start() { + ebegin "Starting the Quorum Disk Daemon" + start-stop-daemon --start --quiet --exec /sbin/qdiskd -- -Q + eend $? "Failed to start qdiskd" +} + +stop() { + ebegin "Stopping the Quorum Disk Daemon" + + start-stop-daemon --stop --pidfile /var/run/qdiskd.pid + eend $? "Failed to stop qdiskd" +} +