Mageia Bugzilla – Attachment 8944 Details for
Bug 20143
mysqld is not Active after start
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch systemd service to move to notify mechanism
mysqld.service.patch (text/plain), 685 bytes, created by
Raphael Gertz
on 2017-02-10 15:33:35 CET
(
hide
)
Description:
Patch systemd service to move to notify mechanism
Filename:
MIME Type:
Creator:
Raphael Gertz
Created:
2017-02-10 15:33:35 CET
Size:
685 bytes
patch
obsolete
>diff -urNp /usr/lib/systemd/system/mysqld.service.orig /usr/lib/systemd/system/mysqld.service >--- /usr/lib/systemd/system/mysqld.service.orig 2017-02-10 14:39:32.449153281 +0100 >+++ /usr/lib/systemd/system/mysqld.service 2017-02-10 15:24:18.418702922 +0100 >@@ -4,13 +4,13 @@ After=syslog.target > After=network.target > > [Service] >-Type=forking >+Type=notify > User=mysql > Group=mysql >+NotifyAccess=main > > ExecStartPre=/usr/sbin/mysqld-prepare-db-dir >-ExecStart=/usr/bin/mysqld_safe --nowatch >-ExecStartPost=/usr/sbin/mysqld-wait-ready $MAINPID >+ExecStart=/usr/sbin/mysqld > > # mysqld-prepare-db-dir needs root rights, this drops privileges only for ExecStart > PermissionsStartOnly=true
diff -urNp /usr/lib/systemd/system/mysqld.service.orig /usr/lib/systemd/system/mysqld.service --- /usr/lib/systemd/system/mysqld.service.orig 2017-02-10 14:39:32.449153281 +0100 +++ /usr/lib/systemd/system/mysqld.service 2017-02-10 15:24:18.418702922 +0100 @@ -4,13 +4,13 @@ After=syslog.target After=network.target [Service] -Type=forking +Type=notify User=mysql Group=mysql +NotifyAccess=main ExecStartPre=/usr/sbin/mysqld-prepare-db-dir -ExecStart=/usr/bin/mysqld_safe --nowatch -ExecStartPost=/usr/sbin/mysqld-wait-ready $MAINPID +ExecStart=/usr/sbin/mysqld # mysqld-prepare-db-dir needs root rights, this drops privileges only for ExecStart PermissionsStartOnly=true
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20143
:
8915
|
8925
|
8936
|
8937
|
8938
| 8944 |
8952
|
8953
|
8954
|
8955