我知道./systemd-219/src/core/mount-setup.c 定义了一些 cgroup mount path 。
但我不知道为什么 systemd 创建目录 /sys/fs/cgroup/systemd/ 以及 /sys/fs/cgroup/systemd/ 和 /sys/fs/cgroup/memory/ 之间有什么区别?
/sys/fs/cgroup/systemd/ 挂载路径只是表示默认的 cgroup 路径吗?
#ll /sys/fs/cgroup/systemd/
total 0
-rw-r--r-- 1 root root 0 Jul 6 2017 cgroup.clone_children
--w--w--w- 1 root root 0 Jul 6 2017 cgroup.event_control
-rw-r--r-- 1 root root 0 Jul 6 15:24 cgroup.procs
-r--r--r-- 1 root root 0 Jul 6 2017 cgroup.sane_behavior
drwxr-xr-x 3 root root 0 Jul 6 15:23 docker.slice
-rw-r--r-- 1 root root 0 Jul 6 2017 notify_on_release
-rw-r--r-- 1 …Run Code Online (Sandbox Code Playgroud) 我想知道如何停止 systemd-logind 并且稍后不重新启动或激活?
我知道 systemd 服务单元文件有一个参数: restart= ,当它的值设置为 no 或 on-failure 时,停止此服务,例如systemctl stop xxx,此服务将不会重新启动或激活
但是 systemd-logind 看起来很特别?我有点不解
I #systemctl cat systemd-logind
# /usr/lib/systemd/system/systemd-logind.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Login …Run Code Online (Sandbox Code Playgroud) systemd ×2