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

Is cron jobs under the "app" user working? #223

Open
mech opened this issue Jun 14, 2018 · 0 comments
Open

Is cron jobs under the "app" user working? #223

mech opened this issue Jun 14, 2018 · 0 comments

Comments

@mech
Copy link

mech commented Jun 14, 2018

Hi, normally I use "whenever" for my Rails and it will create crontab under root user. Somehow it mess with my mounted volumes and now I see my production.log suddenly was created under root user and not the usual app user.

I figure it must have been changed during log rotation. In order to fix this, I am thinking to create cron jobs under "app" user, but somehow it will not run no matter how I try.

I have tried using "whenever -u app" as well as physically "docker exec" into my container and "su app" to create a crontab under "app" user. Nothing seems to work.

If cron installed as root user, everything is fine though.

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

No branches or pull requests

1 participant