Skip to content

Commit 2d96ad9

Browse files
jvanlieshoutDaanHoogland
authored andcommitted
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> (cherry picked from commit 6681682)
1 parent 4ba3aae commit 2d96ad9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎systemvm/patches/debian/config/etc/init.d/cloud-early-config‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
3030
#set -x
3131
#exec 3>&0 4>&1 > /var/log/test.log 2>&1
3232
#start hv_kvp daemon
33-
/usr/sbin/hv_kvp_daemon
33+
[ -f /usr/sbin/hv_kvp_daemon ] && /usr/sbin/hv_kvp_daemon
3434

3535
# Fix haproxy directory issue
3636
mkdir -p /var/lib/haproxy
3737

3838
# Clear boot up flag, it would be created by rc.local after boot up done
39-
rm /var/cache/cloud/boot_up_done
39+
rm -f /var/cache/cloud/boot_up_done
4040

4141
[ -x /sbin/ifup ] || exit 0
4242

4343
. /lib/lsb/init-functions
4444

4545
log_it() {
4646
echo "$(date) $@" >> /var/log/cloud.log
47-
log_action_begin_msg "$@"
47+
log_action_msg "$@"
4848
}
4949

5050
init_interfaces_orderby_macs() {

0 commit comments

Comments
 (0)