Summary: | app-admin/glance - init.d script reports services as crashed when they have started correctly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Davide Rebeccani <davide.rebeccani> |
Component: | Current packages | Assignee: | Matthew Thode ( prometheanfire ) <prometheanfire> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Glance init.d file that fix services status |
Description
Davide Rebeccani
2013-08-26 09:44:48 UTC
Created attachment 357064 [details]
Glance init.d file that fix services status
Comment on attachment 357064 [details]
Glance init.d file that fix services status
--- files/glance.initd 2013-07-03 15:39:47.431059450 +0200
+++ - 2013-08-27 17:04:52.845507837 +0200
@@ -28,9 +28,13 @@
. /etc/conf.d/$BASENAME
ebegin "Starting ${SVCNAME}"
+ if [ ! -d ${PID_PATH} ]; then
+ mkdir ${PID_PATH}
+ fi
- start-stop-daemon --start --quiet --pidfile "${PID_PATH}/${SVCENAME}.pid" \
- --exec /usr/bin/glance-control ${SERVERNAME} start /etc/glance/glance-${SERVERNAME}.conf
+ 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}"
}
fixed in cvs |