[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 |
|
---|
[c42d2055] | 7 | <!ENTITY at-download-http "&sources-anduin-http;/at/at_&at-version;.orig.tar.gz">
|
---|
[15b2a2c2] | 8 | <!ENTITY at-download-ftp " ">
|
---|
[0beb4e7] | 9 | <!ENTITY at-md5sum "ca3657a1c90d7c3d252e0bc17feddc6e">
|
---|
| 10 | <!ENTITY at-size "130 KB">
|
---|
| 11 | <!ENTITY at-buildsize "1.9 MB (including tests)">
|
---|
[fa7ae3f3] | 12 | <!ENTITY at-time "less than 0.1 SBU">
|
---|
[eedba153] | 13 | ]>
|
---|
| 14 |
|
---|
[cb72478] | 15 | <sect1 id="at" xreflabel="At-&at-version;">
|
---|
[eedba153] | 16 | <?dbhtml filename="at.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>at-&at-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="at">
|
---|
| 22 | <primary sortas="a-at">at</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to at</title>
|
---|
| 27 |
|
---|
[b1532549] | 28 | <para>
|
---|
| 29 | The <application>at</application> package provide delayed job execution
|
---|
| 30 | and batch processing. It is required for Linux Standards Base (LSB)
|
---|
| 31 | conformance.
|
---|
| 32 | </para>
|
---|
[eedba153] | 33 |
|
---|
[c8b719a] | 34 | &lfs120_checked;
|
---|
[eedba153] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[b1532549] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&at-download-http;"/>
|
---|
| 41 | </para>
|
---|
[eedba153] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[b1532549] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&at-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[eedba153] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[b1532549] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &at-md5sum;
|
---|
| 51 | </para>
|
---|
[eedba153] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[b1532549] | 54 | <para>
|
---|
| 55 | Download size: &at-size;
|
---|
| 56 | </para>
|
---|
[eedba153] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[b1532549] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &at-buildsize;
|
---|
| 61 | </para>
|
---|
[eedba153] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[b1532549] | 64 | <para>
|
---|
| 65 | Estimated build time: &at-time;
|
---|
| 66 | </para>
|
---|
[eedba153] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">at Dependencies</bridgehead>
|
---|
| 71 |
|
---|
[4ad93b6] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
[af8e3ea3] | 74 | An <xref linkend="server-mail"/>
|
---|
[4ad93b6] | 75 | </para>
|
---|
| 76 |
|
---|
[eedba153] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
| 79 | <xref linkend="linux-pam"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[42ddc30] | 82 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[eedba153] | 83 | <ulink url="&blfs-wiki;/at"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of at</title>
|
---|
| 89 |
|
---|
[b1532549] | 90 | <para>
|
---|
| 91 | Before building <application>at</application>, as the
|
---|
| 92 | <systemitem class="username">root</systemitem> user you should create
|
---|
| 93 | the group and user <systemitem class="username">atd</systemitem> which
|
---|
[cb72478] | 94 | will run the <command>atd</command> daemon:
|
---|
[b1532549] | 95 | </para>
|
---|
[eedba153] | 96 |
|
---|
[6d2cc23] | 97 | <screen role="root"><userinput>groupadd -g 17 atd &&
|
---|
[cb72478] | 98 | useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd</userinput></screen>
|
---|
[3d6df725] | 99 |
|
---|
[b1532549] | 100 | <para>
|
---|
| 101 | Install <application>at</application> with the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[eedba153] | 104 |
|
---|
[d5497a2e] | 105 | <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \
|
---|
[df9fb20] | 106 | --with-daemon_groupname=atd \
|
---|
[cb72478] | 107 | --with-jobdir=/var/spool/atjobs \
|
---|
| 108 | --with-atspool=/var/spool/atspool \
|
---|
[b0b87ad6] | 109 | SENDMAIL=/usr/sbin/sendmail &&
|
---|
[a1995fc] | 110 | make -j1</userinput></screen>
|
---|
[eedba153] | 111 |
|
---|
[d5497a2e] | 112 | <screen revision="systemd"><userinput>./configure --with-daemon_username=atd \
|
---|
| 113 | --with-daemon_groupname=atd \
|
---|
| 114 | SENDMAIL=/usr/sbin/sendmail \
|
---|
[cb72478] | 115 | --with-jobdir=/var/spool/atjobs \
|
---|
| 116 | --with-atspool=/var/spool/atspool \
|
---|
[d5497a2e] | 117 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
| 118 | make -j1</userinput></screen>
|
---|
| 119 |
|
---|
[b1532549] | 120 | <para>
|
---|
[cb72478] | 121 | To test the results, issue: <command>make test</command>.
|
---|
[b1532549] | 122 | </para>
|
---|
[eedba153] | 123 |
|
---|
[cb72478] | 124 |
|
---|
[b1532549] | 125 | <para>
|
---|
| 126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
[eedba153] | 128 |
|
---|
[4647dd7] | 129 | <screen role="root"><userinput>make install docdir=/usr/share/doc/at-&at-version; \
|
---|
| 130 | atdocdir=/usr/share/doc/at-&at-version;</userinput></screen>
|
---|
[eedba153] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="configuration">
|
---|
| 135 | <title>Configuring at</title>
|
---|
| 136 |
|
---|
| 137 | <sect3 id="at-config">
|
---|
| 138 | <title>Config Files</title>
|
---|
| 139 |
|
---|
[b1532549] | 140 | <para>
|
---|
| 141 | <filename>/etc/at.allow</filename> and
|
---|
| 142 | <filename>/etc/at.deny</filename> determines who can submit jobs via at
|
---|
| 143 | or batch.
|
---|
| 144 | </para>
|
---|
[eedba153] | 145 |
|
---|
| 146 | <indexterm zone="at at-config">
|
---|
| 147 | <primary sortas="e-etc-at.allow">/etc/at.allow</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 |
|
---|
| 150 | <indexterm zone="at at-config">
|
---|
| 151 | <primary sortas="e-etc-at.deny">/etc/at.deny</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 |
|
---|
| 154 | </sect3>
|
---|
| 155 |
|
---|
[cb72478] | 156 | <sect3>
|
---|
| 157 | <title>Linux PAM Configuration</title>
|
---|
| 158 |
|
---|
| 159 | <para>
|
---|
| 160 | If <application>At</application> has been built with
|
---|
| 161 | <application>Linux PAM</application> support, you need to create a
|
---|
| 162 | <application>PAM</application> configuration file, to get it working
|
---|
| 163 | correctly with BLFS.
|
---|
| 164 | </para>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
| 167 | Issue the following commands as the <systemitem
|
---|
| 168 | class="username">root</systemitem> user to create the configuration
|
---|
| 169 | file for <application>Linux PAM</application>:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <screen role="root"><userinput>cat > /etc/pam.d/atd << "EOF"
|
---|
| 173 | <literal># Begin /etc/pam.d/atd
|
---|
| 174 |
|
---|
[fc9dd6eb] | 175 | auth required pam_unix.so
|
---|
| 176 | account required pam_unix.so
|
---|
[cb72478] | 177 | password required pam_unix.so
|
---|
[fc9dd6eb] | 178 | session required pam_unix.so
|
---|
[cb72478] | 179 |
|
---|
| 180 | # End /etc/pam.d/atd</literal>
|
---|
| 181 | EOF</userinput></screen>
|
---|
| 182 |
|
---|
| 183 | </sect3>
|
---|
| 184 |
|
---|
[eedba153] | 185 | <sect3 id="at-init">
|
---|
[d5497a2e] | 186 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 187 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[eedba153] | 188 |
|
---|
[b1532549] | 189 | <para revision="sysv">
|
---|
| 190 | Install the <filename>/etc/init.d/atd</filename>
|
---|
| 191 | init script from the <xref linkend="bootscripts"/> package.
|
---|
| 192 | </para>
|
---|
[d5497a2e] | 193 |
|
---|
| 194 | <para revision="systemd">
|
---|
| 195 | To start the <command>atd</command> daemon at boot,
|
---|
| 196 | enable the previously installed systemd unit by
|
---|
| 197 | running the following command as the
|
---|
| 198 | <systemitem class="username">root</systemitem> user:
|
---|
| 199 | </para>
|
---|
[eedba153] | 200 |
|
---|
| 201 | <indexterm zone="at at-init">
|
---|
| 202 | <primary sortas="f-at">at</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 |
|
---|
[d5497a2e] | 205 | <screen role="root" revision="sysv"><userinput>make install-atd</userinput></screen>
|
---|
| 206 |
|
---|
| 207 | <screen role="root" revision="systemd"><userinput>systemctl enable atd</userinput></screen>
|
---|
[eedba153] | 208 |
|
---|
| 209 | </sect3>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | <sect2 role="content">
|
---|
| 214 | <title>Contents</title>
|
---|
| 215 |
|
---|
| 216 | <segmentedlist>
|
---|
| 217 | <segtitle>Installed Programs</segtitle>
|
---|
| 218 | <segtitle>Installed Libraries</segtitle>
|
---|
| 219 | <segtitle>Installed Directories</segtitle>
|
---|
| 220 |
|
---|
| 221 | <seglistitem>
|
---|
[42d6d3b] | 222 | <seg>
|
---|
[909a015] | 223 | at, atd, atq (symlink), atrm (symlink), atrun, and batch
|
---|
| 224 | </seg>
|
---|
| 225 | <seg>
|
---|
| 226 | None
|
---|
| 227 | </seg>
|
---|
| 228 | <seg>
|
---|
[42d6d3b] | 229 | /usr/share/doc/at-&at-version;
|
---|
| 230 | </seg>
|
---|
[eedba153] | 231 | </seglistitem>
|
---|
| 232 | </segmentedlist>
|
---|
| 233 |
|
---|
| 234 | <variablelist>
|
---|
| 235 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 236 | <?dbfo list-presentation="list"?>
|
---|
| 237 | <?dbhtml list-presentation="table"?>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="at-prog">
|
---|
| 240 | <term><command>at</command></term>
|
---|
| 241 | <listitem>
|
---|
[b1532549] | 242 | <para>
|
---|
[4c24eb0a] | 243 | queues, examines or deletes jobs for later execution
|
---|
[b1532549] | 244 | </para>
|
---|
[eedba153] | 245 | <indexterm zone="at at-prog">
|
---|
| 246 | <primary sortas="b-at">at</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="atd">
|
---|
| 252 | <term><command>atd</command></term>
|
---|
| 253 | <listitem>
|
---|
[b1532549] | 254 | <para>
|
---|
[4c24eb0a] | 255 | is the daemon that runs jobs queued for later execution
|
---|
[b1532549] | 256 | </para>
|
---|
[eedba153] | 257 | <indexterm zone="at atd">
|
---|
| 258 | <primary sortas="b-atd">atd</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
[42d6d3b] | 263 | <varlistentry id="atq">
|
---|
| 264 | <term><command>atq</command></term>
|
---|
| 265 | <listitem>
|
---|
[b1532549] | 266 | <para>
|
---|
[4c24eb0a] | 267 | lists the user's pending jobs, or all jobs, if superuser
|
---|
[b1532549] | 268 | </para>
|
---|
[42d6d3b] | 269 | <indexterm zone="at atq">
|
---|
| 270 | <primary sortas="b-atq">atq</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="atrm">
|
---|
| 276 | <term><command>atrm</command></term>
|
---|
| 277 | <listitem>
|
---|
[b1532549] | 278 | <para>
|
---|
[4c24eb0a] | 279 | deletes jobs, identified by their job number
|
---|
[b1532549] | 280 | </para>
|
---|
[42d6d3b] | 281 | <indexterm zone="at atrm">
|
---|
| 282 | <primary sortas="b-atrm">atrm</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
[eedba153] | 287 | <varlistentry id="atrun">
|
---|
| 288 | <term><command>atrun</command></term>
|
---|
| 289 | <listitem>
|
---|
[b1532549] | 290 | <para>
|
---|
[4c24eb0a] | 291 | runs jobs queued for later execution
|
---|
[b1532549] | 292 | </para>
|
---|
[eedba153] | 293 | <indexterm zone="at atrun">
|
---|
| 294 | <primary sortas="b-atrun">atrun</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | <varlistentry id="batch">
|
---|
| 300 | <term><command>batch</command></term>
|
---|
| 301 | <listitem>
|
---|
[b1532549] | 302 | <para>
|
---|
[4c24eb0a] | 303 | is a script that executes commands when system load levels permit
|
---|
[eedba153] | 304 | </para>
|
---|
| 305 | <indexterm zone="at batch">
|
---|
| 306 | <primary sortas="b-batch">batch</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | </variablelist>
|
---|
| 312 |
|
---|
| 313 | </sect2>
|
---|
| 314 |
|
---|
| 315 | </sect1>
|
---|