2
* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 2 of the License.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
#include <drizzled/common.h>
26
#include <drizzled/plugin.h>
27
#include <drizzled/session.h>
28
using namespace drizzled;
29
using namespace drizzled::plugin;
31
#define my_strdup(a,b) strdup(a)
33
#include "cslib/CSConfig.h"
35
#include "cslib/CSConfig.h"
36
#include "mysql_priv.h"
37
#include <mysql/plugin.h>
43
#include "cslib/CSDefs.h"
44
#include "cslib/CSObject.h"
45
#include "cslib/CSGlobal.h"
46
#include "cslib/CSThread.h"
47
#include "cslib/CSStrUtil.h"
51
#include "pbmsdaemon_ms.h"
54
char PBMSDaemon::pbd_home_dir[PATH_MAX];
55
PBMSDaemon::DaemonState PBMSDaemon::pbd_state = PBMSDaemon::DaemonUnknown;
57
void PBMSDaemon::setDaemonState(DaemonState state)
61
if (pbd_state == DaemonStartUp) { // In theory we could allow this to be set with a commandline option.
62
cs_make_absolute_path(PATH_MAX, pbd_home_dir, "pbms", ms_my_get_mysql_home_path());