mirror of https://github.com/sipwise/heartbeat.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
805 B
43 lines
805 B
#!/bin/sh
|
|
#
|
|
# High-Availability Pre-Startup/Shutdown Script
|
|
#
|
|
# Description: Runs on Startup or shutdown of heartbeat (not resource based).
|
|
# Also runs before start, after start or before stop,
|
|
# and after stop.
|
|
#
|
|
# Author: Matthew Soffen
|
|
#
|
|
# Support: linux-ha@lists.linux-ha.org
|
|
#
|
|
# License: GNU Lesser General Public License (LGPL)
|
|
#
|
|
# Copyright: (C) 2002 Matthew Soffen
|
|
#
|
|
#
|
|
unset LC_ALL; export LC_ALL
|
|
unset LANGUAGE; export LANGUAGE
|
|
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
. @sysconfdir@/ha.d/shellfuncs
|
|
|
|
case "$1" in
|
|
'start')
|
|
;;
|
|
'pre-start')
|
|
;;
|
|
'post-start')
|
|
;;
|
|
'stop')
|
|
;;
|
|
'pre-stop')
|
|
;;
|
|
'post-stop')
|
|
;;
|
|
*)
|
|
echo "Usage: $0 { start | pre-start | post-start | stop | pre-stop | post-stop }"
|
|
;;
|
|
esac
|
|
exit 0
|