Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 666494 Details for
Bug 749924
www-apps/bugzilla - Modern bugzilla-queue init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to update bugzilla-queue init
0001-Update-bugzilla-queue.patch (text/plain), 2.19 KB, created by
Brian Evans (RETIRED)
on 2020-10-18 13:20:21 UTC
(
hide
)
Description:
Patch to update bugzilla-queue init
Filename:
MIME Type:
Creator:
Brian Evans (RETIRED)
Created:
2020-10-18 13:20:21 UTC
Size:
2.19 KB
patch
obsolete
>From: Brian Evans <grknight@gentoo.org> >Date: Sat, 17 Oct 2020 19:10:09 -0400 >Subject: [PATCH] Update bugzilla-queue init > >Update bugzilla-queue to more portable format and allow use of supervise-daemon >instead of start-stop-daemon > >Signed-off-by: Brian Evans <grknight@gentoo.org> >--- > www-apps/bugzilla/files/bugzilla-queue.initd | 27 ++++++++++++--------------- > 1 files changed, 13 insertions(+), 14 deletions(-) > >diff --git a/www-apps/bugzilla/files/bugzilla-queue.initd b/www-apps/bugzilla/files/bugzilla-queue.initd >index 118f738b8..817743e26 100755 >--- a/www-apps/bugzilla/files/bugzilla-queue.initd >+++ b/www-apps/bugzilla/files/bugzilla-queue.initd >@@ -1,10 +1,17 @@ > #!/sbin/openrc-run >-# Copyright 1999-2011 Gentoo Foundation >+# Copyright 1999-2020 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > >-PIDFILE="/var/run/bugzilla/${SVCNAME}.pid" >+command=${JOBQUEUE_PATH} > JOBQUEUE_USER=${JOBQUEUE_USER:-root} > JOBQUEUE_GROUP=${JOBQUEUE_GROUP:-root} >+command_user="${JOBQUEUE_USER}:${JOBQUEUE_GROUP}" >+pidfile="/var/run/bugzilla/${RC_SVCNAME}.pid" >+command_args="-p ${pidfile} -n ${RC_SVCNAME} start" >+if [ "${supervisor}" = "supervise-daemon" ]; then >+ command_args="-f ${command_args}" >+ pidfile="/var/run/bugzilla/${RC_SVCNAME}.supervise.pid" >+fi > > checkconfig() { > [[ -z "${JOBQUEUE_USER}" || -z "$(getent passwd ${JOBQUEUE_USER})" ]] && { eerror "JOBQUEUE_USER not set or doesn't exist"; return 1; } >@@ -13,26 +20,18 @@ checkconfig() { > return 0 > } > >-start() { >- ebegin "Starting ${SVCNAME}" >+start_pre() { > checkconfig || return 1 > >- piddir="${PIDFILE%/*}" >+ piddir="${pidfile%/*}" > if [ ! -d "${piddir}" ]; then >- checkpath -q -d -o $JOBQUEUE_USER:$JOBQUEUE_GROUP -m 0770 "${piddir}" || { >+ checkpath -q -d -o "${command_user}" -m 0770 "${piddir}" || { > eend 1 > return 1 > } > fi >- >- start-stop-daemon --start --pidfile $PIDFILE --user $JOBQUEUE_USER --group $JOBQUEUE_GROUP \ >- --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME start 1>/dev/null >- eend $? > } > >-stop() { >- ebegin "Stopping ${SVCNAME}" >+stop_pre() { > checkconfig || return 1 >- start-stop-daemon --pidfile $PIDFILE --stop --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME stop >- eend $? > } >-- >2.26.2 >
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 749924
: 666494