source: general/sysutils/at.xml@ d5497a2e

10.0 10.1 11.0 11.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus nosym perl-modules qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since d5497a2e was d5497a2e, checked in by DJ Lucas <dj@…>, 6 years ago

[Systemd merge] - general/sysutils part 1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17452 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.4 KB
Line 
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">
8 <!ENTITY at-download-ftp "ftp://ftp.de.debian.org/debian/pool/main/a/at/at_&at-version;.orig.tar.gz">
9 <!ENTITY at-md5sum "f67a7aab557cd5b4a1311079a08acebe">
10 <!ENTITY at-size "124 KB">
11 <!ENTITY at-buildsize "1.8 MB">
12 <!ENTITY at-time "less than 0.1 SBU">
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
32 <para>The <application>at</application> package provide delayed job execution
33 and batch processing. It is required for Linux Standards Base (LSB)
34 conformance.</para>
35
36 &lfs79_checked;&gcc6_checked;
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
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required">
64 An <xref linkend="server-mail"/>
65 </para>
66
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
80 <note>
81 <para>
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:
85 </para>
86
87<screen><userinput>mkdir -v at-&at-version; &amp;&amp;
88cd at-&at-version; &amp;&amp;
89tar -xf ../at_&at-version;.tar.gz</userinput></screen>
90 </note>
91
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
95 will run the <command>atd</command> daemon. Also ensure the working
96 directory for the daemon exists:</para>
97
98<screen role="root"><userinput>groupadd -g 17 atd &amp;&amp;
99useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd &amp;&amp;
100mkdir -p /var/spool/cron</userinput></screen>
101
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
109 <para>Install <application>at</application> with the following
110 commands:</para>
111
112 <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \
113 --with-daemon_groupname=atd \
114 SENDMAIL=/usr/sbin/sendmail &amp;&amp;
115
116make</userinput></screen>
117
118 <screen revision="systemd"><userinput>./configure --with-daemon_username=atd \
119 --with-daemon_groupname=atd \
120 SENDMAIL=/usr/sbin/sendmail \
121 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
122
123make -j1</userinput></screen>
124
125 <para>This package does not come with a test suite.</para>
126
127 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
128
129<screen role="root"><userinput>make install \
130 docdir=/usr/share/doc/at-&at-version; \
131 atdocdir=/usr/share/doc/at-&at-version; </userinput></screen>
132
133 </sect2>
134
135 <sect2 role="configuration">
136 <title>Configuring at</title>
137
138 <sect3 id="at-config">
139 <title>Config Files</title>
140
141 <para> <filename>/etc/at.allow</filename> and
142 <filename>/etc/at.deny</filename> determines who can submit jobs via at
143 or batch.</para>
144
145 <indexterm zone="at at-config">
146 <primary sortas="e-etc-at.allow">/etc/at.allow</primary>
147 </indexterm>
148
149 <indexterm zone="at at-config">
150 <primary sortas="e-etc-at.deny">/etc/at.deny</primary>
151 </indexterm>
152
153 </sect3>
154
155 <sect3 id="at-init">
156 <title><phrase revision="sysv">Boot Script</phrase>
157 <phrase revision="systemd">Systemd Unit</phrase></title>
158
159 <para revision="sysv">Install the <filename>/etc/init.d/atd</filename>
160 init script from the <xref linkend="bootscripts"/> package.</para>
161
162 <para revision="systemd">
163 To start the <command>atd</command> daemon at boot,
164 enable the previously installed systemd unit by
165 running the following command as the
166 <systemitem class="username">root</systemitem> user:
167 </para>
168
169 <indexterm zone="at at-init">
170 <primary sortas="f-at">at</primary>
171 </indexterm>
172
173<screen role="root" revision="sysv"><userinput>make install-atd</userinput></screen>
174
175<screen role="root" revision="systemd"><userinput>systemctl enable atd</userinput></screen>
176
177 </sect3>
178
179 </sect2>
180
181 <sect2 role="content">
182 <title>Contents</title>
183
184 <segmentedlist>
185 <segtitle>Installed Programs</segtitle>
186 <segtitle>Installed Libraries</segtitle>
187 <segtitle>Installed Directories</segtitle>
188
189 <seglistitem>
190 <seg>
191 at, atd, atq (symlink), atrm (symlink), atrun, and batch
192 </seg>
193 <seg>
194 None
195 </seg>
196 <seg>
197 /var/spool/cron/at{jobs,spool} and
198 /usr/share/doc/at-&at-version;
199 </seg>
200 </seglistitem>
201 </segmentedlist>
202
203 <variablelist>
204 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
205 <?dbfo list-presentation="list"?>
206 <?dbhtml list-presentation="table"?>
207
208 <varlistentry id="at-prog">
209 <term><command>at</command></term>
210 <listitem>
211 <para>queues, examines or deletes jobs for later execution.</para>
212 <indexterm zone="at at-prog">
213 <primary sortas="b-at">at</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="atd">
219 <term><command>atd</command></term>
220 <listitem>
221 <para>is the daemon that runs jobs queued for later execution.</para>
222 <indexterm zone="at atd">
223 <primary sortas="b-atd">atd</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="atq">
229 <term><command>atq</command></term>
230 <listitem>
231 <para>lists the user's pending jobs, or all jobs, if superuser.</para>
232 <indexterm zone="at atq">
233 <primary sortas="b-atq">atq</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="atrm">
239 <term><command>atrm</command></term>
240 <listitem>
241 <para>deletes jobs, identified by their job number.</para>
242 <indexterm zone="at atrm">
243 <primary sortas="b-atrm">atrm</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="atrun">
249 <term><command>atrun</command></term>
250 <listitem>
251 <para>runs jobs queued for later execution.</para>
252 <indexterm zone="at atrun">
253 <primary sortas="b-atrun">atrun</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="batch">
259 <term><command>batch</command></term>
260 <listitem>
261 <para>is a script that executes commands when system load levels permit.
262 </para>
263 <indexterm zone="at batch">
264 <primary sortas="b-batch">batch</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 </variablelist>
270
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.