This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
heartbeat_plus_jail [2010/04/12 10:49] val |
heartbeat_plus_jail [2011/11/30 10:52] 127.0.0.1 внешнее изменение |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== HEARTBEAT plus Jail ====== | ====== HEARTBEAT plus Jail ====== | ||
<code> | <code> | ||
+ | [gateN:~] # /usr/local/etc/rc.d/heartbeat stop | ||
+ | |||
+ | [gateN:~] # cat /etc/rc.conf | ||
+ | </code><code> | ||
+ | ... | ||
+ | jail_enable="NO" | ||
+ | ... | ||
+ | </code><code> | ||
[gateN:~] # cat /usr/local/etc/ha.d/resource.d/jailserv | [gateN:~] # cat /usr/local/etc/ha.d/resource.d/jailserv | ||
</code><code> | </code><code> | ||
Line 7: | Line 15: | ||
case $1 in | case $1 in | ||
start) | start) | ||
- | /etc/rc.d/jail forcestart mail | + | sleep 10 # for HAST init |
+ | /etc/rc.d/jail onestart mail | ||
;; | ;; | ||
stop) | stop) | ||
- | /etc/rc.d/jail forcestop mail | + | /etc/rc.d/jail onestop mail |
;; | ;; | ||
esac | esac | ||
Line 20: | Line 29: | ||
[gateN:~] # cat /usr/local/etc/ha.d/haresources | [gateN:~] # cat /usr/local/etc/ha.d/haresources | ||
</code><code> | </code><code> | ||
- | gate1.corpX.un gmirror jailserv | + | gate1.corpX.un hast jailserv |
+ | </code><code> | ||
+ | [gateN:~] # /usr/local/etc/rc.d/heartbeat start | ||
</code> | </code> | ||