Difference: SystemdDocs (12 vs. 13)

Revision 132017-01-08 - idurkacz

Line: 1 to 1
 
META TOPICPARENT name="SL7PortHome"

LCFG systemd documentation

Line: 33 to 33
 
    • notify - linked against systemd's sd_notify()

  • service unit options
Changed:
<
<
>
>
    • ExecStart - command (with argument) to be executed to start service
    • ExecReload - command to reload service
    • ExecStop - command to stop service
    • ExecStartPre - command to call before executing command specified by ExecStart
    • ExecStartPost - command to call after executing command specified by ExecStart
    • ExecStopPost - command to call after executing command specifed by ExecStop
    • EnvironmentFile - a file containing environment variables to be set before running above commands
 

Systemd directory structure

Line: 65 to 65
 

LCFG targets

Changed:
<
<
  • multi-user.target (as end ‘default’ target)
>
>
  • multi-user.target (as end 'default' target)
 
    • lcfg-multi-user-stable.target
      • lcfg-multi-user.target
        • lcfg-auth.service (after network.target)
        • lcfg-client.service (after network.target)
Deleted:
<
<
 
        • lcfg-updaterpms.service (after network.target)
      • lcfg-rebootcheck.service (after lcfg-multi-user.target)
    • lcfg-clearbootctx.service (after lcfg-multi-user-stable.target)
Line: 89 to 88
 

Overriding dependencies

Changed:
<
<
It does not appear possible to override dependencies defined through a unit’s .wants or .requires directories.
>
>
It does not appear possible to override dependencies defined through a unit's .wants or .requires directories.
 
Changed:
<
<
A unit can declare a ‘want’ or ‘require’ either through directives in its unit file or through links created in a .wants or .requires directory.
>
>
A unit can declare a 'want' or 'require' either through directives in its unit file or through links created in a .wants or .requires directory.
 
Changed:
<
<
You can easily override dependencies specified in a unit’s unit file, by creating a file of the same name in /etc with the offending directives removed. This file is simply used instead of the file in /lib. For example, unit sshd.service might specify that it ‘Wants’ kerberos.service by means of a Wants directive in its unit file /lib/systemd/sshd.service. One can override this by creating an /etc/systemd/sshd.service with the offending Wants directive removed.
>
>
You can easily override dependencies specified in a unit's unit file, by creating a file of the same name in /etc with the offending directives removed. This file is simply used instead of the file in /lib. For example, unit sshd.service might specify that it 'Wants' kerberos.service by means of a Wants directive in its unit file /lib/systemd/sshd.service. One can override this by creating an /etc/systemd/sshd.service with the offending Wants directive removed.
 
Changed:
<
<
One might expect that creating unit’s .wants or .requires directories in /etc would override the equivalent directories in /lib, but that is not the case. For example, ntpd.service may specify that it ‘Requires’ network.target by means of a symlink, in /lib/systemd/ntpd.service.requires, to the network.target unit file. One might expect that you could remove this dependency by creating a directory /etc/systemd/ntpd.service.requires without the offending symlink. Unfortunately this isn’t what happens – instead, systemd uses the union of /etc/systemd/ntpd.service.requires and /lib/systemd/ntpd.service.requires.
>
>
One might expect that creating unit's .wants or .requires directories in /etc would override the equivalent directories in /lib, but that is not the case. For example, ntpd.service may specify that it 'Requires' network.target by means of a symlink, in /lib/systemd/ntpd.service.requires, to the network.target unit file. One might expect that you could remove this dependency by creating a directory /etc/systemd/ntpd.service.requires without the offending symlink. Unfortunately this isn't what happens - instead, systemd uses the union of /etc/systemd/ntpd.service.requires and /lib/systemd/ntpd.service.requires.
 

Target dependencies

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback