Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 109963 Details for
Bug 152776
sys-cluster/heartbeat-2.0.7 user, group and IPC problems and some others
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New heartbeat init script
heartbeat-init (text/plain), 1.73 KB, created by
gutter
on 2007-02-12 15:48:04 UTC
(
hide
)
Description:
New heartbeat init script
Filename:
MIME Type:
Creator:
gutter
Created:
2007-02-12 15:48:04 UTC
Size:
1.73 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/files/heartbeat-init,v 1.6 2006/07/13 12:52:23 xmerlin Exp $ > >HA_DIR=/etc/ha.d >. $HA_DIR/shellfuncs > >depend() { > use logger > need net >} > >opts="start stop status reload restart" > >CheckBool() { > case `echo "$1" | tr A-Z a-z` in > y|yes|enable|on|true|1) true;; > *) false;; > esac >} > ># Run pre-startup script if it exists >RunStartStop() { > [ -f $HA_DIR/resource.d/startstop ] && $HA_DIR/resource.d/startstop "$@" >} > >start() { > ebegin "Starting heartbeat" > > . $HA_DIR/shellfuncs > > # start the log subsystem > CheckBool "`ha_parameter use_logd`" && \ > ( /usr/lib/heartbeat/ha_logd -s &>/dev/null || \ > /usr/lib/heartbeat/ha_logd -d -c /etc/ha.d/ha_logd.cf) > > RunStartStop pre-start > > CheckBool "`ha_parameter crm`" || \ > /usr/lib/heartbeat/ResourceManager verifyallidle > > /usr/lib/heartbeat/heartbeat &>/dev/null > ret=$? > > RunStartStop post-start > > eend ${ret} >} > >stop() { > ebegin "Stopping heartbeat" > > RunStartStop pre-stop > > /usr/lib/heartbeat/heartbeat -k &>/dev/null > ret=$? > > RunStartStop post-stop ${ret} > > # stop log subsystem > CheckBool "`ha_parameter use_logd`" && \ > ( /usr/lib/heartbeat/ha_logd -s &>/dev/null && \ > /usr/lib/heartbeat/ha_logd -k &>/dev/null ) > > eend ${ret} >} > >status() { > /usr/lib/heartbeat/heartbeat -s >} > >reload() { > ebegin "Reloading heartbeat" > /usr/lib/heartbeat/heartbeat -r &>/dev/null > eend $? >} > >restart() { > . $HA_DIR/shellfuncs > > sleeptime=$(( `ha_parameter deadtime` + 10 )) > > svc_stop > > ebegin " waiting ${sleeptime}s to allow resource takeover to complete" > sleep ${sleeptime} > eend 0 > > svc_start >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 152776
:
100452
|
100453
|
101925
|
101927
|
101929
|
107435
|
109962
| 109963