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

Fix init script syntax for compatibility with RHEL/CentOS 5 #73

Merged
merged 1 commit into from
Oct 3, 2016

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented Sep 30, 2016

There is bash v3.2.* in RHEL/CentOS 5, which doesn't support this notation for stderr and stdout redirection: &>>

The following error occurs:

Starting vault: bash: -c: line 0: syntax error near unexpected token `>'
bash: -c: line 0: `ulimit -S -c 0 >/dev/null 2>&1 ;  { /opt/vault/0.6.1/vault server -config=/etc/vault/vault.json &>> /var/log/vault.log & } ; echo $! >| /var/run/vault.pid '
                                                           [FAILED]

So, we have to use the traditional notation with 2>&1 to keep the compatibility with RHEL/CentOS 5

Verified

This commit was signed with the committer’s verified signature. The key has expired.
legal90 Mikhail Zholobov
There is bash v3.2.* in RHEL/CentOS 5, which doesn't support this notation for stderr and stdout redirection: `&>> `
@legal90 legal90 closed this Oct 3, 2016
@legal90 legal90 reopened this Oct 3, 2016
@legal90 legal90 merged commit 8bba90a into sous-chefs:master Oct 3, 2016
@legal90 legal90 deleted the fix-centos5 branch October 3, 2016 14:13
@lock
Copy link

lock bot commented May 19, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant