-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ensure pidfile directory exists and RUN_USER has access #20
Conversation
Initial creation of the As long as no If a But Anyway. My patch now ensures that the What do you think? |
ok, you kind of convinced me with making the dir due tempfs (but without chown-ing it each and every time). PIDFILE_DIR=$(dirname $PIDFILE)
if [ ! -d $PIDFILE_DIR ] ; then
mkdir -p $PIDFILE_DIR
[ ! -z "$RUN_USER" ] && chown -R $RUN_USER $PIDFILE_DIR
fi unfortunately, the added |
From the jsvc docs: I think the -user option should really be favored instead of invoking the jsvc daemon as unprivileged user using "sudo". The issues #12 (2012-01-20) and #16 (2012-02-22) were reported before jsvc-1.0.10 was released (2012-02-24) and could well be fixed in jsvc-1.0.10, see https://issues.apache.org/jira/browse/DAEMON-242. Maybe you can try to reproduce #12 using jsvc-1.0.10? My Environment: |
@fpauser we all know and appreciate the |
one last thing could you maybe squash things into a single commit thus it's more consistent with what we're doing ? |
Ensure pidfile directory exists and RUN_USER has access
As /var/run is mounted as tmpfs at least under Debian/Ubuntu.