Skip to content

Commit

Permalink
Avoid problem with rule mysqld service as a linked unit on finishing …
Browse files Browse the repository at this point in the history
…stage
  • Loading branch information
Mikhail Sandakov committed Jul 24, 2024
1 parent 1c37b76 commit 68ebc48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pleskdistup/actions/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def __init__(self) -> None:
"httpd.service",
"mailman.service",
"mariadb.service",
"mysqld.service",
"named-chroot.service",
"plesk-ext-monitoring-hcd.service",
"plesk-ssh-terminal.service",
Expand All @@ -111,6 +110,11 @@ def __init__(self) -> None:
"plesk-ip-remapping.service",
]

# Once MariaDB has started, systemctl will not be able to control mysqld as a linked unit.
# Therefore, we should manage mysqld separately and only if MariaDB is not present
if "mariadb.service" not in self.plesk_systemd_services and systemd.is_service_startable("mysqld.service"):
self.plesk_systemd_services.append("mysqld.service")

# We don't remove postfix service when remove it during qmail installation
# so we should choose the right smtp service, otherwise they will conflict
if systemd.is_service_startable("qmail.service"):
Expand Down

0 comments on commit 68ebc48

Please sign in to comment.