无法启动systemd用户实例

xia*_*kai 5 rhel centos systemd services

我正在使用 CentOS 7,并尝试为我的本地用户创建一个 systemd 服务。但是,在执行此操作之前,我需要我的 systemd 用户实例,但我无法找到或创建该实例。

跑步systemctl --user给了我

Failed to issue method call: Process /bin/false exited with status 1

运行systemctl status user@1000.service(其中 1000 是命令给我的 id id)给了我

user@1000.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
Run Code Online (Sandbox Code Playgroud)

如何查找/创建我的 systemd 用户实例?

Ped*_*rek 3

尝试运行systemctl status user@root.service,将用户 root 替换为您的用户,以启动刚刚运行的服务systemctl start user@root.service(如果该服务已停用)。