Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 359488 Details for
Bug 483386
sys-cluster/neutron - Add confd and initd files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
neutron init script
file_483386.txt (text/plain), 1.27 KB, created by
KaZeR
on 2013-09-25 21:48:32 UTC
(
hide
)
Description:
neutron init script
Filename:
MIME Type:
Creator:
KaZeR
Created:
2013-09-25 21:48:32 UTC
Size:
1.27 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >depend() { > need net >} > >checkconfig() { > if [ ! -r /etc/conf.d/quantum ]; then > eerror "No Quantum Config found: /etc/conf.d/quantum)" > return 1 > fi > # FIXME: might be nice to add some checks for proper /etc/quantum config files > return 0 >} > > >start() { > checkconfig || return $? > PLUGINNAME=${SVCNAME#*-} > if [[ $PLUGINNAME == "openvswitch-agent" || $PLUGINNAME == "server" ]]; then > # Should we use a symlink to avoid this special case? > CONFIGNAME="plugins/openvswitch/ovs_quantum_plugin" > else > CONFIGNAME=${PLUGINNAME//-/_} > fi > > ebegin "Starting ${SVCNAME}" > > start-stop-daemon --start --background --make-pidfile \ > --pidfile "${PID_PATH}/${SVCNAME}.pid" \ > --exec /usr/bin/${SVCNAME} -- \ > --config-file=/etc/quantum/quantum.conf --config-file=/etc/quantum/${CONFIGNAME}.ini \ > --log-file=/var/log/quantum/${LOG_PATH}/${SVCNAME}.log > > eend $? "Failed to start ${SVCNAME}" >} > >stop() { > checkconfig || return $? > ebegin "Stopping ${SVCNAME}" > > start-stop-daemon --stop --pidfile "${PID_PATH}/${SVCNAME}.pid" \ > --exec /usr/bin/${SVCNAME} > eend $? "Failed to stop ${SVCNAME}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 483386
:
357654
|
357656
|
357660
|
357662
|
357830
|
357832
| 359488