Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482522

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 packagesAssignee: 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
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]
Comment 1 Davide Rebeccani 2013-08-26 09:46:12 UTC
Created attachment 357064 [details]
Glance init.d file that fix services status
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-27 15:05:00 UTC
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}"
 }
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-12 06:28:00 UTC
fixed in cvs