Mailinglist Archive: opensuse-bugs (4216 mails)

< Previous Next >
[Bug 743125] New: systemd starts mysqld for postfix even if it is not used
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 24 Jan 2012 15:13:38 +0000
  • Message-id: <bug-743125-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=743125

https://bugzilla.novell.com/show_bug.cgi?id=743125#c0


Summary: systemd starts mysqld for postfix even if it is not
used
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: All
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: yuvalery@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101
Firefox/9.0.1

Postfix is default MTA in openSUSE.
It lists mysql.service as "Wants" in /lib/systemd/system/postfix.service

By default postfix is enabled as system MTA and configured NOT to use mysql:
POSTFIX_WITH_MYSQL="no" is set in /etc/sysconfig/postfix

It means that systemd will start mysqld if it is installed and postfix.service
is enabled (it is enabled by default). Whether mysql.service is enabled or not
plays no role. Whether it is actually used by postfix or not plays no role.

On typical freshly installed desktop system mysqld is installed as dependence
of KDE programs (akodadi, amarok, etc). But all those programs by default start
their own instance of mysqld.

All in all, that means that there is unused system-wide instance of mysqld
which is started as optional "Wants" dependence of postfix.

Reproducible: Always

Steps to Reproduce:
1. Boot system with postfix MTA and with mysql installed

Actual Results:
useless system-wide mysql.service starts irrespectively of any settings

Expected Results:
mysql.service should start only if explicitly enabled or actually required.

Now the only way to stop mysql.service from starting as postfix dependence is
to use masking feature of systemd

--
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.

< Previous Next >