gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
449 stars 38 forks source link

Switch user #18

Closed RNACode closed 3 years ago

RNACode commented 6 years ago

Description

The native cron allow specify user. Any plans about this?

#<timing> <user> <command> 11 * * * * root /usr/lib/command

gjcarneiro commented 6 years ago

I agree, would be a nice feature to have in yacron.

gjcarneiro commented 6 years ago

I started work on this, but it's not polished enough. If the process doesn't have permission to change to the target user, the asyncio main loop gets killled. Might be an asyncio bug, not sure...