Your package can simply put the file in /etc/cron.d/
The text file should contain something like this, to run the command every 10 minutes:
*/10 * * * * root /path/to/command
Google 'cron format' for more information, and yes, this applies to askubuntu or superuser.
Correction: after testing, I found that you need to add the username (root) to the string. This seems to be necessary for the files in cron.d, but I cannot find the final document.
cron should automatically select this new job.
laher
source share