After executing /etc/init.d/glance-[api,registry,scrubber] script, processes are running but /bin/rc-status report them as crashed. Reproducible: Always Steps to Reproduce: 1.emerge glance 2./etc/init.d/glance-[api,registry,scrubber] start 3.rc-status -c Actual Results: glance-api [crashed] glance-registry [crashed] glance-scrubber [crashed] Expected Results: glance-api [started] glance-registry [started] glance-scrubber [started]
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