forked from holger24/AFD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct and update some systemd documentation.
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 © 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> | ||
|