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:
parent
ca2a1a42d2
commit
3224a504e4
@ -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
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user