Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
fcron [2015/06/01 16:12]
steve
fcron [2015/06/01 16:12]
steve
Line 11: Line 11:
 [[https://​bugs.gentoo.org/​show_bug.cgi?​id=388371|bug 388371]] [[https://​bugs.gentoo.org/​show_bug.cgi?​id=388371|bug 388371]]
  
-=== Policy === 
- 
-The cron policy is to restrict access to creating cron jobs to user root.  Any cron jobs that need to be run are placed as shell scripts into one of these directories:​ 
- 
-  * ''/​etc/​cron.hourly''​ 
-  * ''/​etc/​cron.daily''​ 
-  * ''/​etc/​cron.weekly''​ 
-  * ''/​etc/​cron.monthly''​ 
- 
-The shell scripts can use ''​su''​ to switch to a user account as needed and execute a job. 
- 
-An example command would be: 
- 
-<​code>​su -l -c "/​home/​user/​bin/​foo.sh --bar" user</​code>​