Browse Source
MDEV-427/MDEV-5713 Add systemd script with notify functionality
MDEV-427/MDEV-5713 Add systemd script with notify functionality
After review/QA fixes.pull/77/merge
19 changed files with 164 additions and 113 deletions
-
6cmake/install_layout.cmake
-
20cmake/systemd.cmake
-
1debian/control
-
2debian/mariadb-server-10.1.files.in
-
6debian/mariadb-server-10.1.postinst
-
12debian/rules
-
27include/my_systemd.h
-
2scripts/CMakeLists.txt
-
18scripts/mariadb-service-convert
-
17scripts/mysqld_safe.sh
-
9sql/mysqld.cc
-
18storage/innobase/log/log0recv.cc
-
20storage/xtradb/log/log0recv.cc
-
40support-files/CMakeLists.txt
-
26support-files/mariadb.service.in
-
26support-files/mariadb@.service.in
-
5support-files/mysql.server.sh
-
20support-files/rpm/server-postin.sh
-
2support-files/wsrep-new-cluster.conf
@ -1,17 +1,34 @@ |
|||||
|
/* |
||||
|
Copyright (c) 2015 Daniel Black. All rights reserved. |
||||
|
|
||||
|
This program is free software; you can redistribute it and/or modify |
||||
|
it under the terms of the GNU General Public License as published by |
||||
|
the Free Software Foundation; version 2 of the License. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU General Public License |
||||
|
along with this program; if not, write to the Free Software |
||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
||||
|
*/ |
||||
|
|
||||
|
|
||||
#ifndef MY_SYSTEMD_INCLUDED |
#ifndef MY_SYSTEMD_INCLUDED |
||||
#define MY_SYSTEMD_INCLUDED |
#define MY_SYSTEMD_INCLUDED |
||||
|
|
||||
#if defined(HAVE_SYSTEMD) && !defined(EMBEDDED_LIBRARY) |
#if defined(HAVE_SYSTEMD) && !defined(EMBEDDED_LIBRARY) |
||||
|
/* |
||||
|
sd-daemon.h may include inttypes.h. Explicitly request format macros before |
||||
|
the first inclusion of inttypes.h. |
||||
|
*/ |
||||
|
#define __STDC_FORMAT_MACROS |
||||
#include <systemd/sd-daemon.h> |
#include <systemd/sd-daemon.h> |
||||
|
|
||||
#else |
#else |
||||
|
|
||||
|
|
||||
|
|
||||
#define sd_notify(X, Y) |
#define sd_notify(X, Y) |
||||
#define sd_notifyf(E, F, ...) |
#define sd_notifyf(E, F, ...) |
||||
|
|
||||
#endif |
#endif |
||||
|
|
||||
#endif /* MY_SYSTEMD_INCLUDED */ |
#endif /* MY_SYSTEMD_INCLUDED */ |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue