Skip to content

Conversation

@grooverdan
Copy link
Member

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)

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
Copy link
Contributor

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.

@grooverdan
Copy link
Member Author

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.

Copy link
Contributor

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()?

@grooverdan
Copy link
Member Author

non-socket activation moved to #100 will get that done first.

@svoj svoj assigned svoj and unassigned vuvova Oct 26, 2015
@svoj
Copy link
Contributor

svoj commented Oct 26, 2015

Daniel, should we close this PR?

@grooverdan
Copy link
Member Author

yes closing. will do a new one on socket activation alone.

@grooverdan grooverdan closed this Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants