forked from pool/ocfs2-tools
3e4aa7393f
mount sets up stack OBS-URL: https://build.opensuse.org/request/show/197408 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=66
96 lines
2.7 KiB
Bash
96 lines
2.7 KiB
Bash
#!/bin/bash
|
|
# Copyright (c) 2008 Andrew Beekhof
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany
|
|
# All Rights Reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of version 2 of the GNU General Public License as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it would be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
#
|
|
# Further, this software is distributed without any warranty that it is
|
|
# free of the rightful claim of any third person regarding infringement
|
|
# or the like. Any license provided herein, whether implied or
|
|
# otherwise, applies only to this software file. Patent licenses, if
|
|
# any, provided herein do not apply to combinations of this program with
|
|
# other software, or any other product whatsoever.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write the Free Software Foundation,
|
|
# Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
|
#
|
|
#######################################################################
|
|
|
|
# OCF initialization
|
|
. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
|
|
|
|
# Parameter defaults
|
|
: ${OCF_RESKEY_stack:="pcmk"}
|
|
: ${OCF_RESKEY_sysfs:="/sys/fs"}
|
|
: ${OCF_RESKEY_daemon_timeout:="10"}
|
|
: ${OCF_RESKEY_configfs:="/sys/kernel/config"}
|
|
: ${OCF_RESKEY_CRM_meta_gloablly_unique:="false"}
|
|
|
|
o2cb_start() {
|
|
ocf_log info "o2cb is now obsolete. Please remove the o2cb resource agent in your next maintenance window!"
|
|
return $OCF_SUCCESS
|
|
}
|
|
|
|
o2cb_stop() {
|
|
ocf_log info "o2cb is now obsolete. Please remove the o2cb resource agent in your next maintenance window!"
|
|
return $OCF_SUCCESS
|
|
}
|
|
|
|
o2cb_usage() {
|
|
echo "usage: $0 {start|stop|meta-data}"
|
|
return $OCF_SUCCESS
|
|
}
|
|
|
|
o2cb_monitor() {
|
|
return $OCF_SUCCESS
|
|
}
|
|
|
|
meta_data() {
|
|
cat <<END
|
|
<?xml version="1.0"?>
|
|
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
|
|
<resource-agent name="o2cb">
|
|
<version>1.0</version>
|
|
<shortdesc lang="en">OBSOLETE o2cb resource agent OBSOLETE</shortdesc>
|
|
<longdesc lang="en">
|
|
This is a o2cb Resource Agent. This is now obsolete!
|
|
</longdesc>
|
|
<parameters>
|
|
</parameters>
|
|
<actions>
|
|
<action name="start" timeout="90" />
|
|
<action name="stop" timeout="100" />
|
|
<action name="monitor" timeout="20" depth="0"/>
|
|
</actions>
|
|
</resource-agent>
|
|
END
|
|
}
|
|
|
|
case $__OCF_ACTION in
|
|
meta-data) meta_data
|
|
exit $OCF_SUCCESS
|
|
;;
|
|
start) o2cb_start
|
|
;;
|
|
stop) o2cb_stop
|
|
;;
|
|
monitor) o2cb_monitor
|
|
;;
|
|
usage|help) o2cb_usage
|
|
exit $OCF_SUCCESS
|
|
;;
|
|
*) o2cb_usage
|
|
exit $OCF_ERR_UNIMPLEMENTED
|
|
;;
|
|
esac
|
|
|
|
exit $?
|