Skip to content
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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improve initscript behavior #1199

wants to merge 1 commit into from

Conversation

jggc
Copy link

@jggc jggc commented Mar 30, 2018

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

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-io
Copy link

codecov-io commented Mar 30, 2018

Codecov Report

Merging #1199 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
libstorage/api/types/types_localdevices.go 84.21% <0%> (-1.76%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c38bb7...1707c55. Read the comment docs.

@clintkitson
Copy link
Member

clintkitson commented Mar 30, 2018 via email

@akutz
Copy link
Member

akutz commented May 18, 2018

Hi @jggc,

I'm happy to accept this PR, but please:

  1. Rebase onto master
  2. Split the current commit into two:
    • Commit 1 - Amazon Linux Support
    • Commit 2 - The global change to ${}

Thank you!

@akutz akutz self-assigned this May 18, 2018
@akutz
Copy link
Member

akutz commented Jun 11, 2018

Ping @jggc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants