Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 357064 Details for
Bug 482522
app-admin/glance - init.d script reports services as crashed when they have started correctly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Glance init.d file that fix services status
glance.initd (text/plain), 1.33 KB, created by
Davide Rebeccani
on 2013-08-26 09:46:12 UTC
(
hide
)
Description:
Glance init.d file that fix services status
Filename:
MIME Type:
Creator:
Davide Rebeccani
Created:
2013-08-26 09:46:12 UTC
Size:
1.33 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-admin/glance/files/glance.initd,v 1.2 2013/07/02 15:33:34 prometheanfire Exp $ > >depend() { > need net >} > >BASENAME=$(echo $SVCNAME | cut -d '-' -f 1) >SERVERNAME=$(echo $SVCNAME | cut -d '-' -f 2) > >checkconfig() { > if [ ! -r /etc/conf.d/$BASENAME ]; then > eerror "No glance conf.dfile found: /etc/conf.d/$BASENAME)" > return 1 > fi > if [ ! -r /etc/glance/${SVCNAME}.conf ]; then > eerror "No ${BASENAME} config file found: /etc/glance/${SVCNAME}.conf)" > return 1 > fi > return 0 >} > > >start() { > checkconfig || return $? > . /etc/conf.d/$BASENAME > > ebegin "Starting ${SVCNAME}" > if [ ! -d ${PID_PATH} ]; then > mkdir ${PID_PATH} > fi > > start-stop-daemon --start --quiet \ > --pidfile "${PID_PATH}/${SVCNAME}.pid" \ > --exec /usr/bin/glance-control ${SERVERNAME} start /etc/glance/glance-${SERVERNAME}.conf > > eend $? "Failed to start ${SVCNAME}" >} > >stop() { > checkconfig || return $? > . /etc/conf.d/$BASENAME > > ebegin "Stopping ${SVCNAME}" > > start-stop-daemon --stop --quiet --pidfile "${PID_PATH}/${SVCNAME}.pid" \ > --exec /usr/bin/glance-control ${SERVERNAME} stop /etc/glance/glance-${SERVERNAME}.conf > eend $? "Failed to stop ${SVCNAME}" >} > >#restart() { ># >#}
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 482522
:
357064