cron job from cron/1
This BOSH job creates a customized crontab, and installs it for the host OS's cron process to manage. Upon stopping, it should clean up after itself
Github source:
4385ba00
or
master branch
Properties¶
cron
¶
entries
¶A list of key-value objects representing cron entries. Each entry must contain properties for ‘minute’, ‘hour’, ‘day’, ‘month’, ‘wday’, ‘user’, and ‘command’. These properties are directly injected into the crontab, and should follow cron syntax conventions.
- Example
- command: /var/vcap/packages/mypackage/bin/myhourlyscript day: '*' hour: '*' minute: 0 month: '*' user: root wday: '*'
variables
¶A key-value map of environment variables that should be set in the crontab
- Example
HOME: /home/vcap PATH: /var/vcap/package/mypackage/bin:/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/cron/
directory
(learn more).
bin/cron_ctl
(frombin/cron_ctl
)bin/monit_debugger
(frombin/monit_debugger
)bin/sleeper
(frombin/sleeper
)config/cron-boshrelease-crontab
(fromconfig/cron-boshrelease-crontab.erb
)data/properties.sh
(fromdata/properties.sh.erb
)helpers/ctl_setup.sh
(fromhelpers/ctl_setup.sh
)helpers/ctl_utils.sh
(fromhelpers/ctl_utils.sh
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.
This job relies on no runtime packages.