FreeBSD Bugzilla – Attachment 183222 Details for
Bug 219787
[PATCH] devel/buildbot: add rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds an rc script for the buildbot master
buildbot_rc_script.diff (text/plain), 2.27 KB, created by
Alan Somers
on 2017-06-04 21:33:51 UTC
(
hide
)
Description:
Adds an rc script for the buildbot master
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2017-06-04 21:33:51 UTC
Size:
2.27 KB
patch
obsolete
>Index: devel/buildbot/Makefile >=================================================================== >--- devel/buildbot/Makefile (revision 442527) >+++ devel/buildbot/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= buildbot > PORTVERSION= 0.9.5 >+PORTREVISION= 1 > CATEGORIES= devel python > MASTER_SITES= CHEESESHOP > >@@ -29,9 +30,12 @@ > ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \ > ${PYTHON_PKGNAMEPREFIX}txrequests>0:www/py-txrequests > >+USE_RC_SUBR= buildbot > USES= python:-2.7 > USE_PYTHON= autoplist distutils > >+SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} >+ > NO_ARCH= yes > > post-patch: >Index: devel/buildbot/files/buildbot.in >=================================================================== >--- devel/buildbot/files/buildbot.in (nonexistent) >+++ devel/buildbot/files/buildbot.in (working copy) >@@ -0,0 +1,57 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# PROVIDE: buildbot >+# REQUIRE: DAEMON >+# KEYWORD: shutdown >+ >+# >+# Add the following lines to /etc/rc.conf to enable buildbot: >+# buildbot_enable (bool): Set to "NO" by default >+# buildbot_basedir (path): Must be set to the path of the buildbot directory >+# file, e.g. /var/www/buildbot >+# buildbot_user (str): Set to "root" by default. Change it to run >+# buildbot as a different user. >+ >+. /etc/rc.subr >+ >+export PATH=${PATH}:%%PREFIX%%/bin >+ >+name="buildbot" >+rcvar=buildbot_enable >+command="%%PREFIX%%/bin/buildbot" >+load_rc_config $name >+ >+check_cmd="${name}_check" >+extra_commands="check reload" >+reload_cmd="${name}_reload" >+start_precmd="${name}_prestart" >+stop_precmd="${name}_prestop" >+ >+pidfile="${buildbot_basedir}/twistd.pid" >+procname="%%PYTHON_CMD%%" >+ >+buildbot_check() >+{ >+ echo "Checking BuildBot config" >+ rc_flags="${buildbot_basedir} ${rc_flags}" >+ ${command} checkconfig ${rc_flags} >+} >+ >+buildbot_prestart() >+{ >+ rc_flags="start ${buildbot_basedir} ${rc_flags}" >+} >+ >+buildbot_prestop() >+{ >+ rc_flags="stop ${buildbot_basedir} ${rc_flags}" >+} >+ >+buildbot_reload() >+{ >+ rc_flags="${buildbot_basedir} ${rc_flags}" >+ ${command} sighup ${rc_flags} >+} >+ >+run_rc_command "$1" > >Property changes on: devel/buildbot/files/buildbot.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219787
: 183222