Инструменты пользователя

Инструменты сайта


heartbeat_plus_jail

HEARTBEAT plus Jail

[nodeN:~] # service heartbeat stop

[nodeN:~] # cat /etc/rc.conf
...
jail_enable="NO"
...
[nodeN:~] # cat /usr/local/etc/ha.d/resource.d/jailserv
#!/bin/sh

case $1 in
start)
        sleep 10 # for HAST init
        service jail onestart mail
        ;;
stop)
        service jail onestop mail
        ;;
esac

exit 0
[nodeN:~] # chmod +x /usr/local/etc/ha.d/resource.d/jailserv
[nodeN:~] # cat /usr/local/etc/ha.d/haresources
node1.corpX.un hast jailserv
[nodeN:~] # service heartbeat start
heartbeat_plus_jail.txt · Последние изменения: 2016/04/22 14:35 — val