出现错误信息 "Trying to run as user instance, but $XDG_RUNTIME_DIR is not set."
Issue
在运行 cron 作业时,出现 "$XDG_RUNTIME_DIR is not set so not start instance. some crontab sessions not running" 错误消息,cron 作业失败。
Environment
- RHEL 8.2
- systemd-239-31.el8_2.2.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.