source: general/sysutils/at.xml@ c4f64d6

lazarus trunk
Last change on this file since c4f64d6 was 1638aa7, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Typos

  • Property mode set to 100644
File size: 8.8 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[eedba153]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>
[1638aa7]29 The <application>at</application> package provides delayed job execution
[b1532549]30 and batch processing. It is required for Linux Standards Base (LSB)
31 conformance.
32 </para>
[eedba153]33
[5d0e7b8]34 &lfs121_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
82 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of at</title>
86
[b1532549]87 <para>
88 Before building <application>at</application>, as the
89 <systemitem class="username">root</systemitem> user you should create
90 the group and user <systemitem class="username">atd</systemitem> which
[cb72478]91 will run the <command>atd</command> daemon:
[b1532549]92 </para>
[eedba153]93
[6d2cc23]94<screen role="root"><userinput>groupadd -g 17 atd &amp;&amp;
[cb72478]95useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd</userinput></screen>
[3d6df725]96
[b1532549]97 <para>
98 Install <application>at</application> with the following
99 commands:
100 </para>
[eedba153]101
[d5497a2e]102 <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \
[df9fb20]103 --with-daemon_groupname=atd \
[cb72478]104 --with-jobdir=/var/spool/atjobs \
105 --with-atspool=/var/spool/atspool \
[b0b87ad6]106 SENDMAIL=/usr/sbin/sendmail &amp;&amp;
[a1995fc]107make -j1</userinput></screen>
[eedba153]108
[d5497a2e]109 <screen revision="systemd"><userinput>./configure --with-daemon_username=atd \
110 --with-daemon_groupname=atd \
111 SENDMAIL=/usr/sbin/sendmail \
[cb72478]112 --with-jobdir=/var/spool/atjobs \
113 --with-atspool=/var/spool/atspool \
[d5497a2e]114 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
115make -j1</userinput></screen>
116
[b1532549]117 <para>
[cb72478]118 To test the results, issue: <command>make test</command>.
[b1532549]119 </para>
[eedba153]120
[cb72478]121
[b1532549]122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
[eedba153]125
[4647dd7]126<screen role="root"><userinput>make install docdir=/usr/share/doc/at-&at-version; \
127 atdocdir=/usr/share/doc/at-&at-version;</userinput></screen>
[eedba153]128
129 </sect2>
130
131 <sect2 role="configuration">
132 <title>Configuring at</title>
133
134 <sect3 id="at-config">
135 <title>Config Files</title>
136
[b1532549]137 <para>
138 <filename>/etc/at.allow</filename> and
139 <filename>/etc/at.deny</filename> determines who can submit jobs via at
140 or batch.
141 </para>
[eedba153]142
143 <indexterm zone="at at-config">
144 <primary sortas="e-etc-at.allow">/etc/at.allow</primary>
145 </indexterm>
146
147 <indexterm zone="at at-config">
148 <primary sortas="e-etc-at.deny">/etc/at.deny</primary>
149 </indexterm>
150
151 </sect3>
152
[cb72478]153 <sect3>
154 <title>Linux PAM Configuration</title>
155
156 <para>
157 If <application>At</application> has been built with
158 <application>Linux PAM</application> support, you need to create a
159 <application>PAM</application> configuration file, to get it working
160 correctly with BLFS.
161 </para>
162
163 <para>
164 Issue the following commands as the <systemitem
165 class="username">root</systemitem> user to create the configuration
166 file for <application>Linux PAM</application>:
167 </para>
168
169<screen role="root"><userinput>cat &gt; /etc/pam.d/atd &lt;&lt; "EOF"
170<literal># Begin /etc/pam.d/atd
171
[fc9dd6eb]172auth required pam_unix.so
173account required pam_unix.so
[cb72478]174password required pam_unix.so
[fc9dd6eb]175session required pam_unix.so
[cb72478]176
177# End /etc/pam.d/atd</literal>
178EOF</userinput></screen>
179
180 </sect3>
181
[eedba153]182 <sect3 id="at-init">
[d5497a2e]183 <title><phrase revision="sysv">Boot Script</phrase>
184 <phrase revision="systemd">Systemd Unit</phrase></title>
[eedba153]185
[b1532549]186 <para revision="sysv">
187 Install the <filename>/etc/init.d/atd</filename>
188 init script from the <xref linkend="bootscripts"/> package.
189 </para>
[d5497a2e]190
191 <para revision="systemd">
192 To start the <command>atd</command> daemon at boot,
193 enable the previously installed systemd unit by
194 running the following command as the
195 <systemitem class="username">root</systemitem> user:
196 </para>
[eedba153]197
198 <indexterm zone="at at-init">
199 <primary sortas="f-at">at</primary>
200 </indexterm>
201
[d5497a2e]202<screen role="root" revision="sysv"><userinput>make install-atd</userinput></screen>
203
204<screen role="root" revision="systemd"><userinput>systemctl enable atd</userinput></screen>
[eedba153]205
206 </sect3>
207
208 </sect2>
209
210 <sect2 role="content">
211 <title>Contents</title>
212
213 <segmentedlist>
214 <segtitle>Installed Programs</segtitle>
215 <segtitle>Installed Libraries</segtitle>
216 <segtitle>Installed Directories</segtitle>
217
218 <seglistitem>
[42d6d3b]219 <seg>
[909a015]220 at, atd, atq (symlink), atrm (symlink), atrun, and batch
221 </seg>
222 <seg>
223 None
224 </seg>
225 <seg>
[42d6d3b]226 /usr/share/doc/at-&at-version;
227 </seg>
[eedba153]228 </seglistitem>
229 </segmentedlist>
230
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="at-prog">
237 <term><command>at</command></term>
238 <listitem>
[b1532549]239 <para>
[4c24eb0a]240 queues, examines or deletes jobs for later execution
[b1532549]241 </para>
[eedba153]242 <indexterm zone="at at-prog">
243 <primary sortas="b-at">at</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="atd">
249 <term><command>atd</command></term>
250 <listitem>
[b1532549]251 <para>
[4c24eb0a]252 is the daemon that runs jobs queued for later execution
[b1532549]253 </para>
[eedba153]254 <indexterm zone="at atd">
255 <primary sortas="b-atd">atd</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[42d6d3b]260 <varlistentry id="atq">
261 <term><command>atq</command></term>
262 <listitem>
[b1532549]263 <para>
[4c24eb0a]264 lists the user's pending jobs, or all jobs, if superuser
[b1532549]265 </para>
[42d6d3b]266 <indexterm zone="at atq">
267 <primary sortas="b-atq">atq</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="atrm">
273 <term><command>atrm</command></term>
274 <listitem>
[b1532549]275 <para>
[4c24eb0a]276 deletes jobs, identified by their job number
[b1532549]277 </para>
[42d6d3b]278 <indexterm zone="at atrm">
279 <primary sortas="b-atrm">atrm</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
[eedba153]284 <varlistentry id="atrun">
285 <term><command>atrun</command></term>
286 <listitem>
[b1532549]287 <para>
[4c24eb0a]288 runs jobs queued for later execution
[b1532549]289 </para>
[eedba153]290 <indexterm zone="at atrun">
291 <primary sortas="b-atrun">atrun</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="batch">
297 <term><command>batch</command></term>
298 <listitem>
[b1532549]299 <para>
[4c24eb0a]300 is a script that executes commands when system load levels permit
[eedba153]301 </para>
302 <indexterm zone="at batch">
303 <primary sortas="b-batch">batch</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 </variablelist>
309
310 </sect2>
311
312</sect1>
Note: See TracBrowser for help on using the repository browser.