avoid jsvc -user and use sudo instead if $RUN_USER provided #12
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.
not sure how for others but for me and @boxofrad
jsvc -user
does not really work.he even issued a pull to fix it #11 - got me thinking it's a bit useless to have it anyway (assuming I'm not the only one it does not work for).
now I assume the "safest" use for running trinidad is under an application (non-root) user and proxying with apache or whatever. the new
/etc/init.d/trinidad
now supports this case, even when it's boot-ed by root (I expected this to be accomplishable withjsvc -user
).it's still possible to roll the "old" root way.
hopefully, this does make sense to others using the daemon on linux, would appreciate a review.
I also attempt to make directories for pid_file and log_file paths