1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

F #4809: Cleanup VIP if oned dies

This commit is contained in:
Jaime Melis 2017-06-22 17:45:21 -04:00
parent ca2a1a42d2
commit 3224a504e4
2 changed files with 5 additions and 0 deletions

View File

@ -424,6 +424,7 @@ INSTALL_FILES=(
ESX_FW_VNC_SHARE_FILES:$SHARE_LOCATION/esx-fw-vnc
INSTALL_GEMS_SHARE_FILES:$SHARE_LOCATION
ONETOKEN_SHARE_FILE:$SHARE_LOCATION
FOLLOWER_CLEANUP_SHARE_FILE:$SHARE_LOCATION
HOOK_FT_FILES:$VAR_LOCATION/remotes/hooks/ft
HOOK_RAFT_FILES:$VAR_LOCATION/remotes/hooks/raft
COMMON_CLOUD_LIB_FILES:$LIB_LOCATION/ruby/cloud
@ -1301,8 +1302,11 @@ HOOK_RAFT_FILES="share/hooks/raft/vip.sh"
INSTALL_GEMS_SHARE_FILES="share/install_gems/install_gems \
share/install_gems/Gemfile"
ONETOKEN_SHARE_FILE="share/onetoken/onetoken.sh"
FOLLOWER_CLEANUP_SHARE_FILE="share/hooks/raft/follower_cleanup"
#-------------------------------------------------------------------------------
# OCA Files
#-------------------------------------------------------------------------------

View File

@ -21,6 +21,7 @@ ExecStartPre=/bin/chown oneadmin:oneadmin /var/log/one
ExecStartPre=-/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStop=/bin/kill -TERM $MAINPID
ExecStopPost=/bin/rm -f /var/lock/one/one
ExecStopPost=/usr/share/one/follower_cleanup
PIDFile=/var/run/one/oned.pid
[Install]