Skip to content

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

@mech

Description

@mech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions