-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Mdev 5536 Add systemd notify and socket activation capabilities to 10.1 branch #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mdev 5536 Add systemd notify and socket activation capabilities to 10.1 branch #83
Conversation
Adds optional compile option WITH_SYSTEMD to provide system functions Debian and Ubuntu packages include systemd libraries as dependencies mariadb-service-convert converts the [mysqld_safe] options into an equilivent systemd file which runs mysqld directly. mariadb-socket-convert takes the [mysqld] network and socket options and creates an equalivent mariadb.socket file. System service file can be either Type=notify or a socket activation. Compiling with systemd does not change any previous behaviour expected of mysqld. Development funded by Open Source Developers Club (Australia)
configure.cmake
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a way too paranoid check. I'd probably only check for sd-daemon.h. But up to you: I don't see anything wrong about it.
…ermine lib, flags and linkerflags
… mariadb-server-core-10.1. mariadb-systemd-start removed
…d-dev replaces libsystemd-daemon-dev
|
TODO: MDEV-7752 - need to package a mariadb{-galera}@bootstrap - part way there. Might also do a multi instance version. /usr/lib/systemd/systemd-activate can be used to fake the socket activation so I'm part way though packaging that too in the mtr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this variable? Can we instead do "[ $simulate -eq 0 ] && return" from log_generic()?
|
non-socket activation moved to #100 will get that done first. |
|
Daniel, should we close this PR? |
|
yes closing. will do a new one on socket activation alone. |
from all the comments in #26 I've make a 10.1 PR here as, adding dependencies on systemd libs was problematic and socket activation was invasive.
Adds optional compile option WITH_SYSTEMD to provide system functions
Debian and Ubuntu packages include systemd libraries as dependencies
mariadb-service-convert converts the [mysqld_safe] options into an
equilivent systemd file which runs mysqld directly.
mariadb-socket-convert takes the [mysqld] network and socket options
and creates an equalivent mariadb.socket file.
System service file can be either Type=notify or a socket activation.
Compiling with systemd does not change any previous behaviour expected
of mysqld.
Development funded by Open Source Developers Club (Australia)