Skip to content

Commit 772f9a1

Browse files
committed
steps and adds two missing dc systemd mgt file
1 parent b23d549 commit 772f9a1

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

DC-SAP-systemd-management

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## ----------------------------
2+
## Doc Config File for the DB Assembly test
3+
## ----------------------------
4+
##
5+
## Basics
6+
MAIN="systemd-management.asm.xml"
7+
SRC_DIR="articles"
8+
IMG_SRC_DIR="images"
9+
## Profiling
10+
PROFOS="sles4sap"
11+
#PROFARCH="x86_64;zseries;power;aarch64"
12+
13+
## stylesheet location
14+
STYLEROOT="/usr/share/xml/docbook/stylesheet/suse2022-ns"
15+
FALLBACK_STYLEROOT="/usr/share/xml/docbook/stylesheet/suse2021-ns"
16+
17+
DOCBOOK5_RNG_URI="urn:x-suse:rng:v2:geekodoc-flat"

DC-SLES-systemd-management

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## ----------------------------
2+
## Doc Config File for the DB Assembly test
3+
## ----------------------------
4+
##
5+
## Basics
6+
MAIN="systemd-management.asm.xml"
7+
SRC_DIR="articles"
8+
IMG_SRC_DIR="images"
9+
## Profiling
10+
PROFOS="sles"
11+
PROFCONDITION="16.0"
12+
13+
## stylesheet location
14+
STYLEROOT="/usr/share/xml/docbook/stylesheet/suse2022-ns"
15+
FALLBACK_STYLEROOT="/usr/share/xml/docbook/stylesheet/suse2021-ns"
16+
17+
DOCBOOK5_RNG_URI="urn:x-suse:rng:v2:geekodoc-flat"

tasks/systemd.sysv-convert.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ For example:</para>
5656
</step>
5757
<step>
5858
<para><emphasis role="bold">Create the &systemd; unit files:</emphasis> Create the <literal>.service</literal> .service files in the <filename>/etc/systemd/system/</filename> directory.
59-
6059
For example:</para>
6160
<itemizedlist>
6261
<listitem><para>For <literal>boot.local</literal>, this service should run early, ordered before basic system initialization.
@@ -75,9 +74,29 @@ For example:</para>
7574
[Install]
7675
WantedBy=basic.target
7776
</screen>
77+
<itemizedlist>
78+
<listitem><para> <literal>Type=oneshot</literal> is suitable for scripts that run once and then exit.</para></listitem>
79+
<listitem><para> <literal>DefaultDependencies=no</literal> and <literal> After/Before</literal> ensures it runs at an equivalent time to <literal>boot.local</literal>.
80+
</para></listitem>
81+
</itemizedlist>
7882
</listitem>
79-
<listitem><para>For <literal>after.local</literal>actions, <filename>/usr/local/bin/my.late-boot.sh</filename> </para></listitem>
80-
</itemizedlist>
83+
<listitem><para>For <literal>after.local</literal>, this service should run later, typically when the multi-user environment is ready.
84+
If it depends on the network being up, add <literal>After=network-online.target</literal>. Create <filename>/etc/systemd/system/my-late-boot.service:</filename>:</para>
85+
<screen>[Unit]
86+
Description=My late startup script
87+
# Add After=network-online.target if your script needs network access
88+
After=multi-user.target
89+
90+
[Service]
91+
Type=oneshot
92+
ExecStart=/usr/local/bin/my-late-boot.sh
93+
RemainAfterExit=yes
94+
95+
[Install]
96+
WantedBy=multi-user.target
97+
</screen>
98+
</listitem>
99+
</itemizedlist>
81100
</step>
82101
</procedure>
83102
</example>

0 commit comments

Comments
 (0)