{
    "mode": "man",
    "parameter": "systemd.slice",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/systemd.slice/5/json",
    "generated": "2026-06-02T17:57:32Z",
    "synopsis": "slice.slice",
    "sections": {
        "NAME": {
            "content": "systemd.slice - Slice unit configuration\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "slice.slice\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A unit configuration file whose name ends in \".slice\" encodes information about a slice unit.\nA slice unit is a concept for hierarchically managing resources of a group of processes. This\nmanagement is performed by creating a node in the Linux Control Group (cgroup) tree. Units\nthat manage processes (primarily scope and service units) may be assigned to a specific\nslice. For each slice, certain resource limits may be set that apply to all processes of all\nunits contained in that slice. Slices are organized hierarchically in a tree. The name of the\nslice encodes the location in the tree. The name consists of a dash-separated series of\nnames, which describes the path to the slice from the root slice. The root slice is named\n-.slice. Example: foo-bar.slice is a slice that is located within foo.slice, which in turn is\nlocated in the root slice -.slice.\n\nNote that slice units cannot be templated, nor is possible to add multiple names to a slice\nunit by creating additional symlinks to its unit file.\n\nBy default, service and scope units are placed in system.slice, virtual machines and\ncontainers registered with systemd-machined(8) are found in machine.slice, and user sessions\nhandled by systemd-logind(8) in user.slice. See systemd.special(7) for more information.\n\nSee systemd.unit(5) for the common options of all unit configuration files. The common\nconfiguration items are configured in the generic [Unit] and [Install] sections. The slice\nspecific configuration options are configured in the [Slice] section. Currently, only generic\nresource control settings as described in systemd.resource-control(5) are allowed.\n\nSee the New Control Group Interfaces[1] for an introduction on how to make use of slice units\nfrom programs.\n",
            "subsections": []
        },
        "AUTOMATIC DEPENDENCIES": {
            "content": "",
            "subsections": [
                {
                    "name": "Implicit Dependencies",
                    "content": "The following dependencies are implicitly added:\n\n•   Slice units automatically gain dependencies of type After= and Requires= on their\nimmediate parent slice unit.\n"
                },
                {
                    "name": "Default Dependencies",
                    "content": "The following dependencies are added unless DefaultDependencies=no is set:\n\n•   Slice units will automatically have dependencies of type Conflicts= and Before= on\nshutdown.target. These ensure that slice units are removed prior to system shutdown. Only\nslice units involved with late system shutdown should disable DefaultDependencies=\noption.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd.unit(5), systemd.resource-control(5), systemd.service(5),\nsystemd.scope(5), systemd.special(7), systemd.directives(7)\n",
            "subsections": []
        },
        "NOTES": {
            "content": "1. New Control Group Interfaces\nhttps://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/\n\n\n\nsystemd 249                                                                         SYSTEMD.SLICE(5)",
            "subsections": []
        }
    },
    "summary": "systemd.slice - Slice unit configuration",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd.unit",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.unit/5/json"
        },
        {
            "name": "systemd.resource-control",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.resource-control/5/json"
        },
        {
            "name": "systemd.service",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.service/5/json"
        },
        {
            "name": "systemd.scope",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.scope/5/json"
        },
        {
            "name": "systemd.special",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.special/7/json"
        },
        {
            "name": "systemd.directives",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.directives/7/json"
        }
    ]
}