Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482522 - app-admin/glance - init.d script reports services as crashed when they have started correctly
Summary: app-admin/glance - init.d script reports services as crashed when they have s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-26 09:44 UTC by Davide Rebeccani
Modified: 2013-09-12 06:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Glance init.d file that fix services status (glance.initd,1.33 KB, text/plain)
2013-08-26 09:46 UTC, Davide Rebeccani
Details

Note You need to log in before you can comment on or make changes to this bug.
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