Changes

Jump to: navigation, search

XELK-AN-008: How to use systemd on an Embedded system

67 bytes added, 12:54, 24 September 2019
[Install] section options
This section is optional but is commonly used for defining a ''Unit'' behaviour when it will be executed during ''enable'' or ''disable'' commands.
{| class="wikitable"|-! Property !! Function|-| WantedBy=: || This is similar to the <code>Wants=</code> on ''[Unit]'' section but allows to mantain the top ''Unit'' more ''clean''.
When the ''Unit'' will be enabled, a directory on <code>/etc/systemd/system</code> will be created with the ''Unit'' name adding <code>.wants</code> to the name. Inside this directoty a symbolic link to the ''Unit'' is created.
* disabling the ''Unit'' the symbolic link is deleted and the relation is then removed.
|-| RequiredBy=: || This is similar to <code>WantedBy=</code> but a dependency cause a ''fail'' if not satisfied. When the ''Unit'' is enabled, a directory with added ''.requires'' will be created|- | Also=: || When the ''Unit'' is enabled, also the listed Units are enabled too.|}
=== Specific sections ===
8,154
edits

Navigation menu