58 lines
4.5 KiB
HTML
58 lines
4.5 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>cdist-type__cron(7)</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.78.0" /></head><body><div xml:lang="en" class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="idp184400"></a>cdist-type__cron(7)</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Steven</span> <span class="surname">Armstrong</span></h3><code class="email"><<a class="email" href="mailto:steven-cdist--@--armstrong.cc">steven-cdist--@--armstrong.cc</a>></code></div></div></div><hr /></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="section"><a href="#_name">1. NAME</a></span></dt><dt><span class="section"><a href="#_description">2. DESCRIPTION</a></span></dt><dt><span class="section"><a href="#_required_parameters">3. REQUIRED PARAMETERS</a></span></dt><dt><span class="section"><a href="#_optional_parameters">4. OPTIONAL PARAMETERS</a></span></dt><dt><span class="section"><a href="#_examples">5. EXAMPLES</a></span></dt><dt><span class="section"><a href="#_see_also">6. SEE ALSO</a></span></dt><dt><span class="section"><a href="#_copying">7. COPYING</a></span></dt></dl></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_name"></a>1. NAME</h2></div></div></div><p>cdist-type__cron - installs and manages cron jobs</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_description"></a>2. DESCRIPTION</h2></div></div></div><p>This cdist type allows you to manage entries in a users crontab.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_required_parameters"></a>3. REQUIRED PARAMETERS</h2></div></div></div><div class="variablelist"><dl class="variablelist"><dt><span class="term">
|
|||
|
user
|
|||
|
</span></dt><dd>
|
|||
|
The user who’s crontab is edited
|
|||
|
</dd><dt><span class="term">
|
|||
|
command
|
|||
|
</span></dt><dd>
|
|||
|
The command to run.
|
|||
|
</dd></dl></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_optional_parameters"></a>4. OPTIONAL PARAMETERS</h2></div></div></div><div class="variablelist"><dl class="variablelist"><dt><span class="term">
|
|||
|
state
|
|||
|
</span></dt><dd>
|
|||
|
Either present or absent. Defaults to present.
|
|||
|
</dd><dt><span class="term">
|
|||
|
minute
|
|||
|
</span></dt><dd>
|
|||
|
See crontab(5). Defaults to *
|
|||
|
</dd><dt><span class="term">
|
|||
|
hour
|
|||
|
</span></dt><dd>
|
|||
|
See crontab(5). Defaults to *
|
|||
|
</dd><dt><span class="term">
|
|||
|
day_of_month
|
|||
|
</span></dt><dd>
|
|||
|
See crontab(5). Defaults to *
|
|||
|
</dd><dt><span class="term">
|
|||
|
month
|
|||
|
</span></dt><dd>
|
|||
|
See crontab(5). Defaults to *
|
|||
|
</dd><dt><span class="term">
|
|||
|
day_of_week
|
|||
|
</span></dt><dd>
|
|||
|
See crontab(5). Defaults to *
|
|||
|
</dd><dt><span class="term">
|
|||
|
raw
|
|||
|
</span></dt><dd>
|
|||
|
Take whatever the user has given instead of time and date fields.
|
|||
|
If given, all other time and date fields are ignored.
|
|||
|
Can for example be used to specify cron EXTENSIONS like reboot, yearly etc.
|
|||
|
See crontab(5) for the extensions if any that your cron implementation
|
|||
|
implements.
|
|||
|
</dd></dl></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_examples"></a>5. EXAMPLES</h2></div></div></div><pre class="screen"># run Monday to Saturday at 23:15
|
|||
|
__cron some-id --user root --command "/path/to/script" \
|
|||
|
--hour 23 --minute 15 --day_of_week 1-6
|
|||
|
|
|||
|
# run on reboot
|
|||
|
__cron some-id --user root --command "/path/to/script" \
|
|||
|
--raw @reboot
|
|||
|
|
|||
|
# remove cronjob
|
|||
|
__cron some-id --user root --command "/path/to/script" --state absent</pre></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_see_also"></a>6. SEE ALSO</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
|
|||
|
cdist-type(7)
|
|||
|
</li><li class="listitem">
|
|||
|
crontab(5)
|
|||
|
</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_copying"></a>7. COPYING</h2></div></div></div><p>Copyright (C) 2011 Steven Armstrong. Free use of this software is
|
|||
|
granted under the terms of the GNU General Public License version 3 (GPLv3).</p></div></div></body></html>
|