[eedba153] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY at-download-http "http://ftp.de.debian.org/debian/pool/main/a/at/at_&at-version;.orig.tar.gz">
|
---|
[1d8b7d4] | 8 | <!ENTITY at-download-ftp "ftp://ftp.de.debian.org/debian/pool/main/a/at/at_&at-version;.orig.tar.gz">
|
---|
[14ba5f4] | 9 | <!ENTITY at-md5sum "f67a7aab557cd5b4a1311079a08acebe">
|
---|
[1d8b7d4] | 10 | <!ENTITY at-size "124 KB">
|
---|
[f87a1fd] | 11 | <!ENTITY at-buildsize "1.8 MB">
|
---|
[1d8b7d4] | 12 | <!ENTITY at-time "less than 0.1 SBU">
|
---|
[eedba153] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="at" xreflabel="Fcron-&at-version;">
|
---|
| 16 | <?dbhtml filename="at.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>at-&at-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="at">
|
---|
| 26 | <primary sortas="a-at">at</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to at</title>
|
---|
| 31 |
|
---|
[0d7900a] | 32 | <para>The <application>at</application> package provide delayed job execution
|
---|
[eedba153] | 33 | and batch processing. It is required for Linux Standards Base (LSB)
|
---|
| 34 | conformance.</para>
|
---|
| 35 |
|
---|
[4df7c20] | 36 | &lfs79_checked;&gcc6_checked;
|
---|
[eedba153] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&at-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&at-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &at-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &at-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &at-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &at-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">at Dependencies</bridgehead>
|
---|
| 61 |
|
---|
[4ad93b6] | 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 63 | <para role="required">
|
---|
[af8e3ea3] | 64 | An <xref linkend="server-mail"/>
|
---|
[4ad93b6] | 65 | </para>
|
---|
| 66 |
|
---|
[eedba153] | 67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 68 | <para role="optional">
|
---|
| 69 | <xref linkend="linux-pam"/>
|
---|
| 70 | </para>
|
---|
| 71 |
|
---|
| 72 | <para condition="html" role="usernotes">User Notes:
|
---|
| 73 | <ulink url="&blfs-wiki;/at"/></para>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of at</title>
|
---|
| 79 |
|
---|
[885068f0] | 80 | <note>
|
---|
| 81 | <para>
|
---|
[14ba5f4] | 82 | This package tarball has not been made from a directory. Unlike the
|
---|
| 83 | normal packages in BLFS, you need to create a directory and untar
|
---|
| 84 | into it:
|
---|
[885068f0] | 85 | </para>
|
---|
[14ba5f4] | 86 |
|
---|
| 87 | <screen><userinput>mkdir -v at-&at-version; &&
|
---|
| 88 | cd at-&at-version; &&
|
---|
| 89 | tar -xf ../at_&at-version;.tar.gz</userinput></screen>
|
---|
| 90 | </note>
|
---|
[885068f0] | 91 |
|
---|
[eedba153] | 92 | <para>Before building <application>at</application>, as the
|
---|
| 93 | <systemitem class="username">root</systemitem> user you should create
|
---|
| 94 | the group and user <systemitem class="username">atd</systemitem> which
|
---|
[6d2cc23] | 95 | will run the <command>atd</command> daemon. Also ensure the working
|
---|
| 96 | directory for the daemon exists:</para>
|
---|
[eedba153] | 97 |
|
---|
[6d2cc23] | 98 | <screen role="root"><userinput>groupadd -g 17 atd &&
|
---|
| 99 | useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd &&
|
---|
| 100 | mkdir -p /var/spool/cron</userinput></screen>
|
---|
[eedba153] | 101 |
|
---|
[885068f0] | 102 | <para>
|
---|
| 103 | Fix <filename>Makefile.in</filename> so that the documentation directory
|
---|
| 104 | is installed in the specified docdir:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput>sed -i '/docdir/s/=.*/= @docdir@/' Makefile.in</userinput></screen>
|
---|
| 108 |
|
---|
[eedba153] | 109 | <para>Install <application>at</application> with the following
|
---|
| 110 | commands:</para>
|
---|
| 111 |
|
---|
[ac38e9dc] | 112 | <screen><userinput>./configure --with-daemon_username=atd \
|
---|
[df9fb20] | 113 | --with-daemon_groupname=atd \
|
---|
[459c449] | 114 | SENDMAIL=/usr/sbin/sendmail \
|
---|
| 115 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
[885068f0] | 116 | make -j1</userinput></screen>
|
---|
[eedba153] | 117 |
|
---|
| 118 | <para>This package does not come with a test suite.</para>
|
---|
| 119 |
|
---|
| 120 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 121 |
|
---|
[ac38e9dc] | 122 | <screen role="root"><userinput>make install \
|
---|
| 123 | docdir=/usr/share/doc/at-&at-version; \
|
---|
| 124 | atdocdir=/usr/share/doc/at-&at-version;</userinput></screen>
|
---|
[eedba153] | 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="configuration">
|
---|
| 129 | <title>Configuring at</title>
|
---|
| 130 |
|
---|
| 131 | <sect3 id="at-config">
|
---|
| 132 | <title>Config Files</title>
|
---|
| 133 |
|
---|
| 134 | <para> <filename>/etc/at.allow</filename> and
|
---|
| 135 | <filename>/etc/at.deny</filename> determines who can submit jobs via at
|
---|
| 136 | or batch.</para>
|
---|
| 137 |
|
---|
| 138 | <indexterm zone="at at-config">
|
---|
| 139 | <primary sortas="e-etc-at.allow">/etc/at.allow</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 |
|
---|
| 142 | <indexterm zone="at at-config">
|
---|
| 143 | <primary sortas="e-etc-at.deny">/etc/at.deny</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 |
|
---|
| 146 | </sect3>
|
---|
| 147 |
|
---|
| 148 | <sect3 id="at-init">
|
---|
[96733af] | 149 | <title>Systemd Units</title>
|
---|
[eedba153] | 150 |
|
---|
[96733af] | 151 | <para>
|
---|
| 152 | To start the <command>atd</command> daemon at boot,
|
---|
| 153 | enable the previously installed systemd unit by
|
---|
| 154 | running the following command as the
|
---|
| 155 | <systemitem class="username">root</systemitem> user:
|
---|
| 156 | </para>
|
---|
[eedba153] | 157 |
|
---|
| 158 | <indexterm zone="at at-init">
|
---|
| 159 | <primary sortas="f-at">at</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 |
|
---|
[459c449] | 162 | <screen role="root"><userinput>systemctl enable atd</userinput></screen>
|
---|
[eedba153] | 163 |
|
---|
| 164 | </sect3>
|
---|
| 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
| 168 | <sect2 role="content">
|
---|
| 169 | <title>Contents</title>
|
---|
| 170 |
|
---|
| 171 | <segmentedlist>
|
---|
| 172 | <segtitle>Installed Programs</segtitle>
|
---|
| 173 | <segtitle>Installed Libraries</segtitle>
|
---|
| 174 | <segtitle>Installed Directories</segtitle>
|
---|
| 175 |
|
---|
| 176 | <seglistitem>
|
---|
[7be3636] | 177 | <seg>
|
---|
[14ba5f4] | 178 | at, atd, atq (symlink), atrm (symlink), atrun, and batch
|
---|
| 179 | </seg>
|
---|
| 180 | <seg>
|
---|
| 181 | None
|
---|
| 182 | </seg>
|
---|
| 183 | <seg>
|
---|
| 184 | /var/spool/cron/at{jobs,spool} and
|
---|
[7be3636] | 185 | /usr/share/doc/at-&at-version;
|
---|
| 186 | </seg>
|
---|
[eedba153] | 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="at-prog">
|
---|
| 196 | <term><command>at</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>queues, examines or deletes jobs for later execution.</para>
|
---|
| 199 | <indexterm zone="at at-prog">
|
---|
| 200 | <primary sortas="b-at">at</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="atd">
|
---|
| 206 | <term><command>atd</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>is the daemon that runs jobs queued for later execution.</para>
|
---|
| 209 | <indexterm zone="at atd">
|
---|
| 210 | <primary sortas="b-atd">atd</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
[7be3636] | 215 | <varlistentry id="atq">
|
---|
| 216 | <term><command>atq</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>lists the user's pending jobs, or all jobs, if superuser.</para>
|
---|
| 219 | <indexterm zone="at atq">
|
---|
| 220 | <primary sortas="b-atq">atq</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="atrm">
|
---|
| 226 | <term><command>atrm</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>deletes jobs, identified by their job number.</para>
|
---|
| 229 | <indexterm zone="at atrm">
|
---|
| 230 | <primary sortas="b-atrm">atrm</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
[eedba153] | 235 | <varlistentry id="atrun">
|
---|
| 236 | <term><command>atrun</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>runs jobs queued for later execution.</para>
|
---|
| 239 | <indexterm zone="at atrun">
|
---|
| 240 | <primary sortas="b-atrun">atrun</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="batch">
|
---|
| 246 | <term><command>batch</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>is a script that executes commands when system load levels permit.
|
---|
| 249 | </para>
|
---|
| 250 | <indexterm zone="at batch">
|
---|
| 251 | <primary sortas="b-batch">batch</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | </variablelist>
|
---|
| 257 |
|
---|
| 258 | </sect2>
|
---|
| 259 |
|
---|
| 260 | </sect1>
|
---|