-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve initscript behavior #1199
Open
jggc
wants to merge
1
commit into
rexray:master
Choose a base branch
from
jggc:fixInitscript
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Current initscript does not work as intended : - When is starts the service it stays in the foreground, initscripts should run daemons in the background - It logs to the tty, initscripts should redirect their output to somewhere that makes sense. So here is this patch that will send the appropriate targets of the rexray service in the background and only output minimal informative logging to the tty, any other logs are redirected into /var/log/rexray/initscript.log Also refactored to use "${}" across the script
Codecov Report
@@ Coverage Diff @@
## master #1199 +/- ##
=========================================
- Coverage 34.25% 34.2% -0.05%
=========================================
Files 36 36
Lines 2362 2362
=========================================
- Hits 809 808 -1
- Misses 1450 1451 +1
Partials 103 103
Continue to review full report at Codecov.
|
Thank you!
…On Fri, Mar 30, 2018 at 11:23 AM jggc ***@***.***> wrote:
Current initscript does not work as intended :
- When is starts the service it stays in the foreground, initscripts
should run daemons in the background
- It logs to the tty, initscripts should redirect their output to
somewhere that makes sense.
So here is this patch that will send the appropriate targets of the
rexray service in the background and only output minimal informative
logging to the tty, any other logs are redirected into
/var/log/rexray/initscript.log
Also refactored to use "${}" across the script
------------------------------
You can view, comment on, or merge this pull request online at:
#1199
Commit Summary
- Improve initscript behavior
File Changes
- *M* cli/installer.go
<https://github.com/rexray/rexray/pull/1199/files#diff-0> (37)
Patch Links:
- https://github.com/rexray/rexray/pull/1199.patch
- https://github.com/rexray/rexray/pull/1199.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1199>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVMMbSBhorcI8WtVD8GvF2NbjFORD_Mks5tjngygaJpZM4TB_T1>
.
|
Hi @jggc, I'm happy to accept this PR, but please:
Thank you! |
Ping @jggc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current initscript does not work as intended :
should run daemons in the background
somewhere that makes sense.
So here is this patch that will send the appropriate targets of the
rexray service in the background and only output minimal informative
logging to the tty, any other logs are redirected into
/var/log/rexray/initscript.log
Also refactored to use "${}" across the script