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

Summary: systemd starts mysqld for postfix even if it is not
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

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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >