Getting error message "Trying to run as user instance, but $XDG_RUNTIME_DIR is not set."
Issue
When running cron jobs, getting "$XDG_RUNTIME_DIR is not set so can't start instance. some crontab sessions not running" error message and cron jobs fail.
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.