systemd.preset(5)


NAME

   systemd.preset - Service enablement presets

SYNOPSIS

   /etc/systemd/system-preset/*.preset

   /run/systemd/system-preset/*.preset

   /lib/systemd/system-preset/*.preset

   /etc/systemd/user-preset/*.preset

   /run/systemd/user-preset/*.preset

   /usr/lib/systemd/user-preset/*.preset

DESCRIPTION

   Preset files may be used to encode policy which units shall be enabled
   by default and which ones shall be disabled. They are read by systemctl
   preset (for more information see systemctl(1)) which uses this
   information to enable or disable a unit according to preset policy.
   systemctl preset is used by the post install scriptlets of RPM packages
   (or other OS package formats), to enable/disable specific units by
   default on package installation, enforcing distribution, spin or
   administrator preset policy. This allows choosing a certain set of
   units to be enabled/disabled even before installing the actual package.

   For more information on the preset logic please have a look at the
   Presets[1] document.

   It is not recommended to ship preset files within the respective
   software packages implementing the units, but rather centralize them in
   a distribution or spin default policy, which can be amended by
   administrator policy.

   If no preset files exist, systemctl preset will enable all units that
   are installed by default. If this is not desired and all units shall
   rather be disabled, it is necessary to ship a preset file with a
   single, catchall "disable *" line. (See example 1, below.)

PRESET FILE FORMAT

   The preset files contain a list of directives consisting of either the
   word "enable" or "disable" followed by a space and a unit name
   (possibly with shell style wildcards), separated by newlines. Empty
   lines and lines whose first non-whitespace character is # or ; are
   ignored.

   Presets must refer to the "real" unit file, and not to any aliases. See
   systemd.unit(5) for a description of unit aliasing.

   Two different directives are understood: "enable" may be used to enable
   units by default, "disable" to disable units by default.

   If multiple lines apply to a unit name, the first matching one takes
   precedence over all others.

   Each preset file shall be named in the style of
   <priority>-<policy-name>.preset. Files in /etc/ override files with the
   same name in /usr/lib/ and /run/. Files in /run/ override files with
   the same name in /lib/. Packages should install their preset files in
   /lib/. Files in /etc/ are reserved for the local administrator, who may
   use this logic to override the preset files installed by vendor
   packages. All preset files are sorted by their filename in
   lexicographic order, regardless of which of the directories they reside
   in. If multiple files specify the same unit name, the entry in the file
   with the lexicographically earliest name will be applied. It is
   recommended to prefix all filenames with a two-digit number and a dash,
   to simplify the ordering of the files.

   If the administrator wants to disable a preset file supplied by the
   vendor, the recommended way is to place a symlink to /dev/null in
   /etc/systemd/system-preset/ bearing the same filename.

EXAMPLE

   Example 1. Default off example
   /lib/systemd/system-preset/99-default.preset:

       disable *

   This disables all units. Due to the filename prefix "99-", it will be
   read last and hence can easily be overridden by spin or administrator
   preset policy or suchlike.

   Example 2. A GNOME spin example
   /lib/systemd/system-preset/50-gnome.preset:

       enable gdm.service
       enable colord.service
       enable accounts-daemon.service
       enable avahi-daemon.*

   This enables the three mentioned units, plus all avahi-daemon
   regardless of which unit type. A file like this could be useful for
   inclusion in a GNOME spin of a distribution. It will ensure that the
   units necessary for GNOME are properly enabled as they are installed.
   It leaves all other units untouched, and subject to other (later)
   preset files, for example like the one from the first example above.

   Example 3. Administrator policy
   /etc/systemd/system-preset/00-lennart.preset:

       enable httpd.service
       enable sshd.service
       enable postfix.service
       disable *

   This enables three specific services and disables all others. This is
   useful for administrators to specifically select the units to enable,
   and disable all others. Due to the filename prefix "00-" it will be
   read early and hence overrides all other preset policy files.

SEE ALSO

   systemd(1), systemctl(1), systemd-delta(1)

NOTES

    1. Presets
       http://freedesktop.org/wiki/Software/systemd/Preset





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.