mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Cosmetic fixed. three in total. 1. Only run hv_kvp_daemon if it exists. 2. add the -f argument to the rm to make is silent if it doesn't exist. 3. by using log_action_msg instead of log_action_begin_msg the screen output looks way better.
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
34b177f2b5
commit
66816827cb
@ -30,13 +30,13 @@ PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
|
||||
#set -x
|
||||
#exec 3>&0 4>&1 > /var/log/test.log 2>&1
|
||||
#start hv_kvp daemon
|
||||
/usr/sbin/hv_kvp_daemon
|
||||
[ -f /usr/sbin/hv_kvp_daemon ] && /usr/sbin/hv_kvp_daemon
|
||||
|
||||
# Fix haproxy directory issue
|
||||
mkdir -p /var/lib/haproxy
|
||||
|
||||
# Clear boot up flag, it would be created by rc.local after boot up done
|
||||
rm /var/cache/cloud/boot_up_done
|
||||
rm -f /var/cache/cloud/boot_up_done
|
||||
|
||||
[ -x /sbin/ifup ] || exit 0
|
||||
|
||||
@ -44,7 +44,7 @@ rm /var/cache/cloud/boot_up_done
|
||||
|
||||
log_it() {
|
||||
echo "$(date) $@" >> /var/log/cloud.log
|
||||
log_action_begin_msg "$@"
|
||||
log_action_msg "$@"
|
||||
}
|
||||
|
||||
init_interfaces_orderby_macs() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user