-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from martin-belanger/doc-stas-config
doc: document stas-config service/target.
- Loading branch information
Showing
6 changed files
with
152 additions
and
10 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
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
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--*-nxml-*--> | ||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) 2022, Dell Inc. or its subsidiaries. All rights reserved. | ||
--> | ||
<refentry id="stas-config.target"> | ||
<refentryinfo> | ||
<title>stas-config.target</title> | ||
<productname>nvme-stas</productname> | ||
<author> | ||
<personname> | ||
<honorific>Mr</honorific> | ||
<firstname>Martin</firstname> | ||
<surname>Belanger</surname> | ||
</personname> | ||
<affiliation> | ||
<orgname>Dell, Inc.</orgname> | ||
</affiliation> | ||
</author> | ||
</refentryinfo> | ||
|
||
<refmeta> | ||
<refentrytitle>stas-config.target</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>stas-config.target</refname> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<para> | ||
<filename>/usr/lib/systemd/system/stas-config.target</filename> | ||
</para> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
<para> | ||
This target is used as a synchronization point before starting | ||
<citerefentry><refentrytitle>stacd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> and | ||
<citerefentry><refentrytitle>stafd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | ||
</para> | ||
|
||
<para> | ||
It ensures that <filename>/etc/nvme/hostnqn</filename> and | ||
<filename>/etc/nvme/hostid</filename> are present before starting | ||
<citerefentry><refentrytitle>stacd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> and | ||
<citerefentry><refentrytitle>stafd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>See Also</title> | ||
|
||
<para> | ||
<citerefentry> | ||
<refentrytitle>stacd</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</citerefentry> | ||
<citerefentry> | ||
<refentrytitle>stafd</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</citerefentry> | ||
</para> | ||
</refsect1> | ||
</refentry> | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--*-nxml-*--> | ||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) 2022, Dell Inc. or its subsidiaries. All rights reserved. | ||
--> | ||
<refentry id="[email protected]"> | ||
<refentryinfo> | ||
<title>[email protected]</title> | ||
<productname>nvme-stas</productname> | ||
<author> | ||
<personname> | ||
<honorific>Mr</honorific> | ||
<firstname>Martin</firstname> | ||
<surname>Belanger</surname> | ||
</personname> | ||
<affiliation> | ||
<orgname>Dell, Inc.</orgname> | ||
</affiliation> | ||
</author> | ||
</refentryinfo> | ||
|
||
<refmeta> | ||
<refentrytitle>[email protected]</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>[email protected]</refname> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<para> | ||
<filename>/usr/lib/systemd/system/[email protected]</filename> | ||
</para> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
<para> | ||
This service is used for the automatic run-time generation of | ||
NVMe configuration located in <filename>/etc/nvme</filename> | ||
(e.g. <filename>/etc/nvme/hostnqn</filename>). This is needed by | ||
<citerefentry><refentrytitle>stacd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> and | ||
<citerefentry><refentrytitle>stafd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>See Also</title> | ||
|
||
<para> | ||
<citerefentry> | ||
<refentrytitle>stacd</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</citerefentry> | ||
<citerefentry> | ||
<refentrytitle>stafd</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</citerefentry> | ||
</para> | ||
</refsect1> | ||
</refentry> | ||
|
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 |
---|---|---|
|
@@ -7,10 +7,8 @@ | |
[Unit] | ||
Description=@STAC_DESCRIPTION@ (@STAC_ACRONYM@) | ||
Documentation=man:@[email protected](8) man:@STACD_PROCNAME@(8) | ||
Wants=modprobe@nvme_tcp.service network.target | ||
After=modprobe@nvme_tcp.service network.target | ||
Wants=stas-config.target | ||
After=stas-config.target | ||
Wants=modprobe@nvme_tcp.service network.target stas-config.target | ||
After=modprobe@nvme_tcp.service network.target stas-config.target | ||
|
||
# Check that the nvme-tcp kernel module was previously | ||
# loaded by checking for the presence of /dev/nvme-fabrics. | ||
|
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 |
---|---|---|
|
@@ -10,10 +10,8 @@ | |
[Unit] | ||
Description=@STAF_DESCRIPTION@ (@STAF_ACRONYM@) | ||
Documentation=man:@[email protected](8) man:@STAFD_PROCNAME@(8) | ||
Wants=modprobe@nvme_tcp.service network.target | ||
After=modprobe@nvme_tcp.service network.target avahi-daemon.service | ||
Wants=stas-config.target | ||
After=stas-config.target | ||
Wants=modprobe@nvme_tcp.service network.target stas-config.target | ||
After=modprobe@nvme_tcp.service network.target stas-config.target avahi-daemon.service | ||
|
||
# Check that the nvme-tcp kernel module was previously | ||
# loaded by checking for the presence of /dev/nvme-fabrics. | ||
|