Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486586 - dev-util/buildbot: Implement reload rule
Summary: dev-util/buildbot: Implement reload rule
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-30 15:07 UTC by Markos Chandras (RETIRED)
Modified: 2013-09-30 19:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2013-09-30 15:07:20 UTC
sending SIGHUP to buildmaster make it re-read the configuration without requiring a full stop/start cycle. The following patch for the init script implements the missing rule

+extra_started_commands="reload"
+
 depend() {

 
 checkconfig() {
@@ -43,3 +46,9 @@
        start-stop-daemon --stop --pidfile "${BASEDIR}/buildmaster.pid"
        eend $?
 }
+
+reload() {
+       ebegin "Reconfiguring buildmaster in ${BASEDIR}"
+       start-stop-daemon --signal SIGHUP --pidfile "${BASEDIR}"/buildmaster.pid
+       eend $?
+}


This is mainly a reminder to myself so I will not forget.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2013-09-30 15:42:47 UTC
s/SIGHUP/HUP/ of course.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2013-09-30 19:25:02 UTC
Fixed in 0.8.8-r2