Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 660886 Details for
Bug 885739
RedHat init script doesn't support overwriting of options from sysconfig
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch
0001-RHEL-init-script-ability-to-overwrite-options-from-s.patch (text/plain), 1.17 KB, created by
Filip Pytloun
on 2012-12-10 14:05:30 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Filip Pytloun
Created:
2012-12-10 14:05:30 UTC
Size:
1.17 KB
patch
obsolete
>From 239a370d925b4d317a2e772806cdecbd5424f390 Mon Sep 17 00:00:00 2001 >From: Filip Pytloun <filip.pytloun@gooddata.com> >Date: Mon, 10 Dec 2012 14:41:10 +0100 >Subject: [PATCH] RHEL init script: ability to overwrite options from > sysconfig > >--- > extras/init.d/glusterd-Redhat.in | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in >index c260ca0..5c92a44 100755 >--- a/extras/init.d/glusterd-Redhat.in >+++ b/extras/init.d/glusterd-Redhat.in >@@ -10,10 +10,21 @@ > BASE=glusterd > PIDFILE=/var/run/$BASE.pid > PID=`test -f $PIDFILE && cat $PIDFILE` >+ >+# Overwriteable from sysconfig >+LOG_LEVEL='' >+LOG_FILE='' >+GLUSTERD_OPTIONS='' >+ >+[ -f /etc/sysconfig/${BASE} ] && . /etc/sysconfig/${BASE} >+ >+[ ! -z $LOG_LEVEL ] && GLUSTERD_OPTIONS="${GLUSTERD_OPTIONS} --log-level ${LOG_LEVEL}" >+[ ! -z $LOG_FILE ] && GLUSTERD_OPTIONS="${GLUSTERD_OPTIONS} --log-file ${LOG_FILE}" >+ > GLUSTERFSD=glusterfsd > GLUSTERFS=glusterfs > GLUSTERD_BIN=@prefix@/sbin/$BASE >-GLUSTERD_OPTS="--pid-file=$PIDFILE" >+GLUSTERD_OPTS="--pid-file=$PIDFILE ${GLUSTERD_OPTIONS}" > GLUSTERD="$GLUSTERD_BIN $GLUSTERD_OPTS" > RETVAL=0 > >-- >1.7.12.3 >
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 885739
: 660886