-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from basho/jem-smartos-runner-patches
Create patches for SmartOS packages to handle differing behavior
- Loading branch information
Showing
6 changed files
with
61 additions
and
94 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
169c169 | ||
< exec sudo -H -u $RUNNER_USER -i $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT $@ | ||
--- | ||
> exec sudo -H -u $RUNNER_USER $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT $@ |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
54a55 | ||
> | ||
57a59,64 | ||
> if [ "${SMF_METHOD}" != "start" ]; then | ||
> echo "***" | ||
> echo "Warning: please use 'svcadm enable $SCRIPT' instead" | ||
> echo "***" | ||
> fi | ||
> | ||
68,69c75,81 | ||
< # Warn the user if ulimit is too low | ||
< check_ulimit | ||
--- | ||
> # Make sure we have access to enough file descriptors | ||
> ULIMIT_S=$(prctl -n process.max-file-descriptor -t basic -P $$ | awk '/max-file-descriptor/ { print $3 }') | ||
> ULIMIT_H=$(prctl -n process.max-file-descriptor -t priv -P $$ | awk '/max-file-descriptor/ { print $3 }') | ||
> if [ ${ULIMIT_S} -lt ${ULIMIT_H} ]; then | ||
> echo "Trying to raise the file descriptor limit to maximum allowed." | ||
> prctl -n process.max-file-descriptor -t basic -v ${ULIMIT_H} $$ || true | ||
> fi | ||
116a129 | ||
> | ||
119a133,138 | ||
> if [ "${SMF_METHOD}" != "stop" ]; then | ||
> echo "***" | ||
> echo "Warning: please use 'svcadm disable $SCRIPT' instead" | ||
> echo "***" | ||
> fi | ||
> | ||
226,227c245,251 | ||
< # Warn the user if ulimit -n is less than the defined threshold | ||
< check_ulimit | ||
--- | ||
> # Make sure we have access to enough file descriptors | ||
> ULIMIT_S=$(prctl -n process.max-file-descriptor -t basic -P $$ | awk '/max-file-descriptor/ { print $3 }') | ||
> ULIMIT_H=$(prctl -n process.max-file-descriptor -t priv -P $$ | awk '/max-file-descriptor/ { print $3 }') | ||
> if [ ${ULIMIT_S} -lt ${ULIMIT_H} ]; then | ||
> echo "Trying to raise the file descriptor limit to maximum allowed." | ||
> prctl -n process.max-file-descriptor -t basic -v ${ULIMIT_H} $$ || true | ||
> fi |
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