[Bug 840548] New: systemctl is-enabled postgresql.service reports enabled for disabled non-native service.
https://bugzilla.novell.com/show_bug.cgi?id=840548 https://bugzilla.novell.com/show_bug.cgi?id=840548#c0 Summary: systemctl is-enabled postgresql.service reports enabled for disabled non-native service. Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: them4z@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 systemctl enable/disable work fine, but is-enabled incorrectly prints "enabled" and returns 0 when chkconfig returns "postgresql off". ---------- 8< ---------- isis:~ # systemctl disable postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql off isis:~ # systemctl is-enabled postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql --level=5 postgresql off enabled isis:~ # chkconfig -l postgresql Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. postgresql 0:off 1:off 2:off 3:off 4:off 5:off 6:off isis:~ # systemctl enable postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql on isis:~ # chkconfig -l postgresql Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. postgresql 0:off 1:off 2:off 3:on 4:off 5:on 6:off isis:~ # systemctl is-enabled postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql --level=5 postgresql on enabled isis:~ # systemctl disable postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql off isis:~ # chkconfig -l postgresql Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. postgresql 0:off 1:off 2:off 3:off 4:off 5:off 6:off isis:~ # systemctl is-enabled postgresql.service postgresql.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig postgresql --level=5 postgresql off enabled ---------- >8 ---------- Reproducible: Always Steps to Reproduce: 1. systemctl disable postgresql.service 2. systemctl is-enabled postgresql.service This seems to be similar to https://bugzilla.novell.com/show_bug.cgi?id=769405 (the workaround there was to migrate to systemd). https://bugzilla.novell.com/show_bug.cgi?id=721435#c0 also seems to mention this issue in the last paragraph. https://bugzilla.novell.com/show_bug.cgi?id=811870 is different, because in my case, enable/disable work fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c3
Axel Braun
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c4
Vojtech Zeisek
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c5
--- Comment #5 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=840548
https://bugzilla.novell.com/show_bug.cgi?id=840548#c6
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com