亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? resourcemanager.in

?? 在LINUX下實現(xiàn)HA的源代碼
?? IN
?? 第 1 頁 / 共 2 頁
字號:
#!/bin/sh##	$Id: ResourceManager.in,v 1.12.2.6 2005/08/31 16:05:07 alan Exp $##	New haresources format:##	machine resource resource resource resource##	Where a resource can be an IP address or a scriptname, or a scriptname#	and single argument.##	When it's a scriptname with an argument, the argument is connected to#	the scriptname with "::".  Another way of expressing an IP address is#	via IPaddr::ip-address, since the script name IPaddr is the one assumed#	for resources which are spelled like an IP address.##	As an illustration, the following two lines are identical in effect:##	node1	123.45.67.89 httpd#	node1	IPaddr::123.45.67.89 httpd##       One can also pass multiple arguments to a script by separating each#       argument with a double colon:##       node1  10.0.0.170 Filesystem::/dev/sda1::/data1::ext2##	Note:  The first resource on the line must be unique in the haresources#	file.  Maybe I should add a resource type called Unique which can#	put on the front of a line to meet this requirement.### set -x: : : ==================== Starting ResourceManager $* ========================== unset LC_ALL; export LC_ALL # Make ifconfig work in France for David Jules :-)unset LANGUAGE; export LANGUAGE # Make ifconfig work in France for Fabrice :-) prefix=@prefix@exec_prefix=@exec_prefix@HA_DIR=@sysconfdir@/ha.dHA_FUNCS=$HA_DIR/shellfuncsexport HA_DIR HA_FUNCSINITDIR=@INITDIR@USAGE="usage: $0 listkeys machine | takegroup key | givegroup key|status resource";. $HA_FUNCS: ${HA_STOPRETRYMAX=10}isip() {  case $1 in    [0-9]*.[0-9]*.[0-9]*.[0-9]*)	true;;    *)					false;;  esac}## Reverseargs doesn't deal with arguments containing  white space correctly.# To fix this I think you'd have to change it to put out the arguments# one per line, and then have the caller use them a line at a time using# "read" or something.  This could be done either using a tmp file or# by using eval on the argument numbers starting from $# and going# down.  But, no existing resource script deals with these either, so# I'm not too worried yet...#reverseargs() {  L=""  for arg in "$@"  do    case $L in      ?*)	L="$arg $L";;      "")	L=$arg;;    esac  done  echo $L}##	Remove comments and extra blanks from haresources#	translate all white space into single blanks.  Each line ends with#	a blank, making parsing it easier for dumb shell scripts.#ipres() {  grepflags=""  case $# in    0)	pat='.'			;;    1)  pat=$1			;;    2)  grepflags=$1; pat=$2	;;  esac  cat $HA_DIR/haresources |	#	#	Explanation of Sed -e expressions below:	#	#	1) Strip out comments	#	2) Repeatedly join lines together when they're ended by '\'        #		(":a" is a label.  "ta" is a conditional	#		branch to "a:")	#	3) Append a blank to the end of the line	#	4) Compress multiple blanks/tabs into a single blank	#	5) Remove lines that only contain whitespace or are empty	#	6) Strip off a leading space (if any)	#	sed						\		-e  's%#.*%%'				\		-e :a -e '/\\$/N; s/\\\n//; ta'		\		-e  's%$% %'				\		-e  's%[	 ][	 ]*% %g' 	\		-e  '/^[	 ]*$/ d' 		\		-e  's%^ %%' 				|	awk '/.*/ {$1 = tolower($1); print $0, ""}'	|  	egrep $grepflags "$pat"}ipresline() {	ipres " $1 "}KeyResources() {	ipres -i "^$1 "  | cut -d' ' -f2}OurGroupKeys() {	ipres -i "^${HA_CURHOST} "  | cut -d' ' -f2-}OtherGroupKeys() {	ipres -iv "^${HA_CURHOST} "  | cut -d' ' -f2-}canonname() {  if    isip $1  then    echo "IPaddr::$1"  else    echo $1  fi}resource2script() {  case `canonname $1` in    *::*)	echo $1 | sed 's%::.*%%'		;;    *)		echo $1;;  esac}# Return the list of arguments after the script name.# multiple arguments are separated by :: delimitersresource2arg() {  case `canonname $1` in    *::*)	echo $1 | sed 's%[^:]*::%%' | sed 's%::% %g'		;;  esac}scriptpath() {  script=`canonname $1`  script=`resource2script $script`  for dir in $HA_RESOURCEDIR $INITDIR  do    if      [ -f $dir/$script -a -x $dir/$script ]    then      echo $dir/$script;      return 0;    fi  done  ha_log "ERROR: Cannot locate resource script $script"  false}##	Since we're patterned after the LSB's init scripts, here are#	the exit codes we should be returning for status...##	0	program is running#	1	program is dead and /var/run pid file exists#	2	program is dead and /var/lock lock file exists#	3	program is stopped#	4-100	reserved for future LSB use#	100-149	reserved for distribution use#	150-199	reserved for application use#	200-254	reserved#we_own_resource() {  arg=`resource2arg $1`  spath=`scriptpath $1`;  case `$spath $arg status` in    *[Nn][Oo][Tt]\ *[Rr]unning*)	return 3;;    *[Rr]unning*|*OK*)			return 0;;    *)					return 3;;  esac}doscript() {  script=`resource2script $1`  arg=`resource2arg $1`  spath=`scriptpath $script`  if    [ -f "$spath" -a -x "$spath" ]  then    ha_log "info: Running $spath $arg $2"    ha_debug "debug: Starting $spath $arg $2"    $spath $arg "$2" 2>>$HA_DEBUGLOG    RC=$?    ha_debug "debug: $spath $arg $2 done. RC=$RC"    case $RC in      0);;      *) ha_log "ERROR: Return code $RC from $spath";;    esac    return $RC;  fi  ha_log "ERROR: Cannot locate resource script $script"  return 1;}# Arguments are: nodename resource1 resource2 ...giveupresourcegroup() {  ha_log "info: Releasing resource group: $*"  shift  rc=0  for j in `reverseargs "$@"`  do    retries=0    while      doscript $j stop >>$HA_DEBUGLOG 2>&1      rc1=$?      [ $HA_STOPRETRYMAX -le 0 -o  $retries -lt $HA_STOPRETRYMAX ] &&      [ $rc1 -ne 0 ]    do      sleep 1      retries=`expr 1 + "$retries"`      ha_log "info: Retrying failed stop operation [$j]"    done    if      [ $rc1 -ne 0 ]    then      if        we_own_resource $j      then        rc=$rc1        RecoverFromFailedStop	# Bye Bye!      else        # Red Hat (and probably others) Kludge!        ha_log "ERROR: Resource script for $j probably not LSB-compliant."        ha_log "WARN: it ($j) MUST succeed on a stop when already stopped"        ha_log "WARN: Machine reboot narrowly avoided!"      fi    fi  done  return $rc}# Arguments are: nodename resource1 resource2 ...acquireresourcegroup() {  ha_log "info: Acquiring resource group: $*"  node="$1"  shift  rc=0;  for j in "$@"  do    if      we_own_resource "$j" || doscript "$j" start    then      : $j start succeeded    else      rc=$?      ha_log "CRIT: Giving up resources due to failure of $j"      giveupresourcegroup "$node" "$@"      break    fi  done  return $rc}##	We may be given a resource to give up that we don't own...#GiveUpGroup() {  #	Get the list of resources we've been requested to give up...  haresources=`ipresline $1`  if    [ ! -z "$haresources" ]  then    giveupresourcegroup $haresources  fi}TakeGroup() {  #	Get the list of resources we've been requested to take...  haresources=`ipresline $1`  if    [ ! -z "$haresources" ]  then    acquireresourcegroup $haresources  fi}## Determine the status of all the resources in a resource group## Results are echoed to stdout:## NONE:	None of the resources in the resource group are held

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区 二区 三区 久久精品| 日韩一本二本av| 奇米色777欧美一区二区| 中文久久乱码一区二区| 91精品在线观看入口| 99久久精品99国产精品| 精彩视频一区二区| 午夜精品视频一区| 樱桃国产成人精品视频| 国产色产综合产在线视频| 欧美一区二区在线看| 欧美优质美女网站| youjizz久久| 国产高清成人在线| 另类的小说在线视频另类成人小视频在线 | 中文字幕一区二区三区四区不卡| 6080国产精品一区二区| 一道本成人在线| 成人激情电影免费在线观看| 精品影院一区二区久久久| 日韩激情视频网站| 一区二区三区免费| 中文字幕第一区第二区| 久久这里只有精品首页| 精品国产在天天线2019| 7777精品伊人久久久大香线蕉的 | 日韩欧美精品在线视频| 欧美日韩成人综合天天影院| 91国产免费观看| 99久久综合精品| eeuss鲁一区二区三区| 成人av网站免费观看| 成人一道本在线| 成人免费毛片aaaaa**| 福利一区在线观看| 成人午夜精品在线| 成人免费观看视频| av不卡一区二区三区| av在线综合网| 94-欧美-setu| 色吊一区二区三区| 欧美午夜一区二区三区| 欧美高清激情brazzers| 91精品国产综合久久福利| 69av一区二区三区| 欧美成人性福生活免费看| 久久综合国产精品| 欧美激情一区二区三区| 日韩一区欧美小说| 一级中文字幕一区二区| 视频一区中文字幕国产| 美女网站在线免费欧美精品| 另类调教123区 | 懂色av一区二区三区蜜臀| 不卡大黄网站免费看| 欧美影院午夜播放| 日韩欧美亚洲一区二区| 2021国产精品久久精品| 中文字幕一区二区三区在线播放| 一区二区久久久久久| 三级影片在线观看欧美日韩一区二区 | www欧美成人18+| 欧美国产日韩a欧美在线观看| 亚洲视频在线观看三级| 五月婷婷激情综合网| 久久99九九99精品| 91在线视频观看| 欧美日韩和欧美的一区二区| 2024国产精品| 伊人色综合久久天天人手人婷| 日本强好片久久久久久aaa| 国产乱码字幕精品高清av | 国产精品久久午夜| 亚洲高清免费观看高清完整版在线观看| 首页国产丝袜综合| 成人免费视频免费观看| 欧美福利电影网| 欧美国产激情二区三区| 天堂在线一区二区| 成人av影视在线观看| 欧美丰满一区二区免费视频| 国产欧美一区二区精品婷婷| 亚洲一线二线三线视频| 国产福利91精品一区二区三区| 欧美吻胸吃奶大尺度电影| 26uuu亚洲综合色欧美| 亚洲自拍另类综合| 成人免费视频网站在线观看| 欧美妇女性影城| 亚洲免费观看高清| 国产成人亚洲综合a∨猫咪| 欧美主播一区二区三区| 中文文精品字幕一区二区| 日本v片在线高清不卡在线观看| 97国产精品videossex| 久久综合九色综合欧美98| 五月天亚洲精品| 91免费看片在线观看| 国产日韩av一区二区| 日本不卡不码高清免费观看| 在线观看91视频| 国产精品成人一区二区三区夜夜夜| 另类人妖一区二区av| 欧美精品日韩综合在线| 一区二区三区免费在线观看| 成人免费的视频| 久久久精品影视| 九九**精品视频免费播放| 欧美丰满少妇xxxbbb| 亚洲尤物在线视频观看| 99精品桃花视频在线观看| 久久久久久久精| 狠狠色综合播放一区二区| 91精品国产综合久久福利软件 | wwwwww.欧美系列| 视频一区二区国产| 欧美日韩视频专区在线播放| 亚洲图片你懂的| 不卡电影免费在线播放一区| 国产色一区二区| 国产aⅴ精品一区二区三区色成熟| 精品伦理精品一区| 美女一区二区久久| 日韩免费看的电影| 麻豆成人av在线| 日韩欧美中文字幕公布| 奇米色一区二区| 日韩欧美一区二区在线视频| 日本在线播放一区二区三区| 337p亚洲精品色噜噜噜| 日本伊人色综合网| 日韩一区二区影院| 麻豆成人免费电影| 亚洲精品一区二区三区四区高清| 久久精品国产亚洲5555| 欧美成人免费网站| 国产乱一区二区| 国产精品麻豆一区二区| 99久久国产免费看| 一区二区三区毛片| 欧美日韩日本视频| 免费观看在线综合| 亚洲精品一线二线三线| 顶级嫩模精品视频在线看| 国产精品欧美一级免费| 色综合久久综合网欧美综合网 | 精品乱人伦小说| 国产成人在线视频免费播放| 中文字幕的久久| 欧美在线影院一区二区| 亚洲444eee在线观看| 国产欧美日韩亚州综合| 国产.精品.日韩.另类.中文.在线.播放| 国产日韩欧美综合在线| 99v久久综合狠狠综合久久| 亚洲欧美另类在线| 欧美日韩国产系列| 国模一区二区三区白浆| 国产精品久久久久久久裸模| 在线影视一区二区三区| 蜜桃视频在线观看一区| 国产三级欧美三级| 91精彩视频在线观看| 日韩不卡一区二区三区| 久久久综合视频| 91久久线看在观草草青青| 日韩国产在线观看一区| 国产肉丝袜一区二区| 日本久久电影网| 激情久久五月天| 亚洲精品第1页| 精品国偷自产国产一区| 一本大道久久a久久综合| 美腿丝袜亚洲一区| 日韩理论片在线| 精品久久久久久最新网址| 99在线精品视频| 蜜桃视频在线观看一区二区| 国产精品久久毛片av大全日韩| 欧美美女bb生活片| 成人高清在线视频| 日韩**一区毛片| 亚洲人一二三区| 久久婷婷成人综合色| 欧美日韩精品欧美日韩精品| 成人永久aaa| 麻豆精品国产传媒mv男同| 亚洲激情第一区| 久久久久久**毛片大全| 欧美日韩高清一区二区三区| 白白色 亚洲乱淫| 精品一区二区三区av| 亚洲大尺度视频在线观看| 国产精品理伦片| 久久久久久电影| 日韩午夜在线观看| 欧美亚洲一区二区在线| 成人aaaa免费全部观看| 国产一区二区三区在线观看精品 | 麻豆一区二区在线|