Skip to content

Commit

Permalink
Correct and update some systemd documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
holger24 committed Aug 20, 2020
1 parent d3ad90c commit 80634de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions changes-initd-systemd
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ are some changes in running AFD as a background daemon.
1) Copy the [email protected] file with an instance name foo
to /etc/systemd/system/afd.target.wants as follows:

cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/afd.target.wants/[email protected]
cd /usr/lib/systemd/system
cp [email protected] [email protected]

Edit the file [email protected] and change the line
'User=%i' by resolving %i to the real username under
which the AFD instance should run.
which the AFD instance should run. Then do a
'systemctl daemon-reload'.

2) Next create the environment file /etc/afd/foo_environment.conf
and set the variable AFD_WORK_DIR variable to point to the
Expand Down
13 changes: 9 additions & 4 deletions doc/html-en/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ <h1 align=center>Setup with systemd</h1>
follows by the system administrator:
</p>
<pre>
cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/afd.target.wants/afd@donald_tick.service
cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/afd.target.wants/afd@donald_trick.service
cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/afd.target.wants/afd@donald_track.service
cd /usr/lib/systemd/system
cp [email protected] afd@donald_tick.service
cp [email protected] afd@donald_trick.service
cp [email protected] afd@donald_track.service
</pre>
<p>
These three files must then be modified by the system administrator by
Expand Down Expand Up @@ -134,13 +135,17 @@ <h1 align=center>Setup with systemd</h1>
cat /etc/afd/donald_track_environment.conf
AFD_WORK_DIR=/home/donald/track
</pre>
<p>
Then issue the command 'systemctl daemon-reload', so systemd sees those
modifications.
</p>
<hr size=3 noshade>
<table width="100%">
<tr>
<td width="90%"><small><address>
Copyright &copy; 2020 by H.Kiehl<br>
<a href="mailto:[email protected]?subject=AFD Homepage">[email protected]</a><br>
Last updated: 10.08.2020
Last updated: 19.08.2020
</address></small></td>
<td nowrap><small><img align=middle src="../images/reddot.gif" alt="[red dot]"><a href="contents.html">Index</a></small></td>
<td nowrap><small><img align=middle src="../images/reddot.gif" alt="[red dot]"><a href="index.html">Home</a></small></td>
Expand Down

0 comments on commit 80634de

Please sign in to comment.