#!/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 } meta_data() { cat < 1.0 OBSOLETE o2cb resource agent OBSOLETE This is a o2cb Resource Agent. This is now obsolete! END } case $__OCF_ACTION in meta-data) meta_data exit $OCF_SUCCESS ;; start) o2cb_start ;; stop) o2cb_stop ;; usage|help) o2cb_usage exit $OCF_SUCCESS ;; *) o2cb_usage exit $OCF_ERR_UNIMPLEMENTED ;; esac exit $?