http://bugzilla.opensuse.org/show_bug.cgi?id=1093851 Bug ID: 1093851 Summary: systemctl status wrong for global user services Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: masterpatricko@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- 'systemctl status' shows global user services as "disabled" regardless of true status
sudo systemctl --global enable redshift.service Created symlink /etc/systemd/user/default.target.wants/redshift.service → /usr/lib/systemd/user/redshift.service.
systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor preset: enabled) Active: inactive (dead)
(no difference with --user instead) This is also reflected in systemctl show:
systemctl --global show redshift.service | grep UnitFile UnitFileState=disabled UnitFilePreset=enabled
However, systemctl is-enabled works (though it is a bit confusing that --global is necessary here):
systemctl --global is-enabled redshift.service enabled systemctl --user is-enabled redshift.service disabled
grep -H . /usr/lib/systemd/user-preset/* /usr/lib/systemd/user-preset/99-default.preset:disable * systemctl --global status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; disabled; vendor
Vendor preset status is also wrong: preset: enabled) Active: inactive (dead) Even though the preset works:
sudo systemctl --global enable redshift.service Created symlink /etc/systemd/user/default.target.wants/redshift.service → /usr/lib/systemd/user/redshift.service. sudo systemctl --global preset redshift.service Removed /etc/systemd/user/default.target.wants/redshift.service.
sudo systemctl --global disable redshift.service Removed /etc/systemd/user/default.target.wants/redshift.service. systemctl --user enable redshift.service Created symlink ~/.config/systemd/user/default.target.wants/redshift.service → /usr/lib/systemd/user/redshift.service. systemctl --user is-enabled redshift.service enabled systemctl --global is-enabled redshift.service disabled systemctl --user status redshift.service ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; enabled; vendor
Only per-user service status works: preset: enabled) Active: inactive (dead)
rpm -q systemd systemd-234-lp150.19.1.x86_64 systemctl --version systemd 234 +PAM -AUDIT +SELINUX -IMA +APPARMOR -SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid
-- You are receiving this mail because: You are on the CC list for the bug.