After emergine sys-cluster/quantum there isn't any init scripts Reproducible: Always Steps to Reproduce: 1.emerge sys-cluster/quantum 2. 3. Actual Results: Missing init scripts Expected Results: Find /etc/init.d/quantum
Created attachment 356498 [details] Fixed ebuild that installs init scripts with use flag selections
Created attachment 356500 [details] /etc/conf.d/quantum file to write PID file during startup of quantum services
Created attachment 356502 [details] /etc/init.d/quantum script to start services
Comment on attachment 356498 [details] Fixed ebuild that installs init scripts with use flag selections --- quantum-2013.1.9999.ebuild 2013-08-20 15:37:56.636596016 +0200 +++ - 2013-08-20 17:45:10.941831930 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/quantum/quantum-2013.1.9999.ebuild,v 1.2 2013/08/19 03:29:17 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/quantum/quantum-2013.1.9999.ebuild,v 1.1 2013/08/02 18:33:11 prometheanfire Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 ) @@ -16,8 +16,8 @@ LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="" -IUSE="test" +KEYWORDS="~amd64 ~x86" +IUSE="server test" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/cliff[${PYTHON_USEDEP}] @@ -58,8 +58,21 @@ virtual/python-argparse[${PYTHON_USEDEP}] net-misc/openvswitch" +pkg_setup() { + enewgroup quantum + enewuser quantum -1 -1 /var/lib/quantum quantum +} + python_install() { distutils-r1_python_install + + newconfd "${FILESDIR}/quantum.confd" quantum + newinitd "${FILESDIR}/quantum.initd" quantum + + use server && dosym /etc/init.d/quantum /etc/init.d/quantum-server + + dodir /var/log/quantum /run/quantum + fowners quantum:quantum /var/log/quantum keepdir /etc/quantum insinto /etc/quantum @@ -78,3 +91,8 @@ insinto "/usr/lib64/python2.7/site-packages/quantum/db/migration/alembic_migrations/" doins -r "quantum/db/migration/alembic_migrations/versions" } + +pkg_config() { + fperms 0700 /var/log/quantum + fowners quantum:quantum /var/log quantum +}
if all that the server flag does is a symlink I think I'll forgo that flag for now. But thanks for the conf.d and init files :D
Created attachment 356510 [details] Missed the $PID_PATH creation
(In reply to Matthew Thode ( prometheanfire ) from comment #5) > if all that the server flag does is a symlink I think I'll forgo that flag > for now. But thanks for the conf.d and init files :D I was thinking about enabling the selection of the quantum modules/plugins via USE flags so i was trying with the first and the easier :-D
(In reply to Davide Rebeccani from comment #7) > (In reply to Matthew Thode ( prometheanfire ) from comment #5) > > if all that the server flag does is a symlink I think I'll forgo that flag > > for now. But thanks for the conf.d and init files :D > > I was thinking about enabling the selection of the quantum modules/plugins > via USE flags so i was trying with the first and the easier :-D that's fair :D
*** This bug has been marked as a duplicate of bug 483386 ***