Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrita42 committed Jan 23, 2025
1 parent 1d3bfe7 commit 25ff49f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion articles/systemd-settargets.asm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<!-- S T R U C T U R E -->
<structure renderas="article" xml:id="systemd-settargets" xml:lang="en">
<merge>
<title>Introduction to &systemd; Basics</title>
<title>Introduction to &systemd; targets</title>
<revhistory xml:id="rh-systemd-services">
<revision><date>2024-10-30f</date>
<revdescription>
Expand Down
5 changes: 5 additions & 0 deletions glues/systemd-more-information.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ Man 1 journalctl
<para>
System and Service Manager <link xlink:href="https://systemd.io/"> </link>
</para>
</listitem>
<listitem>
<para>
systemd.target — Target unit configuration <link xlink:href="https://www.freedesktop.org/software/systemd/man/latest/systemd.target.html"> </link>
</para>
</listitem>
</itemizedlist>
</topic>
4 changes: 2 additions & 2 deletions tasks/systemd-set-targets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ WantedBy=multi-user.target
<step>
<para>Set permissions for the target file. </para>
<para>For example:</para>
<screen>&prompt.sudo; <command>sudo chmod 644 /etc/systemd/system/test.target
<screen>&prompt.sudo; <command>chmod 644 /etc/systemd/system/test.target
</command></screen> </step>
<step>
<para>Link the required services to the target file. Create a <literal>.wants</literal> directory and then create
symbolic links to the services you want to include in your custom target.</para>
<para>For example:</para>
<screen>&prompt.sudo; <command>mkdir -p /etc/systemd/system/custom.target.wants/ </command></screen>
<screen>&prompt.sudo; <command>sudo ln -s /etc/systemd/system/test.service /etc/systemd/system/custom.target.wants/
<screen>&prompt.sudo; <command>ln -s /etc/systemd/system/test.service /etc/systemd/system/custom.target.wants/
</command></screen>
</step>
<step>
Expand Down

0 comments on commit 25ff49f

Please sign in to comment.