Skip to content

Commit

Permalink
Remove the cronjob before freeze the VM (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Jing <[email protected]>
  • Loading branch information
JingChen23 committed Oct 31, 2023
1 parent 7b9f644 commit 7bcdf94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ echo -e "Stop networking services...\n"
systemctl stop networking.service
systemctl stop resolvconf.service

echo "Remove cronjob to make sure this script only execute once..."
crontab -l | grep -v 'customize.sh' | crontab -

echo -e "Freezing ...\n"

vmware-rpctool "instantclone.freeze"

echo -e "\n=== Start Post-Freeze ==="

echo "Remove cronjob to make sure this script only execute once..."
crontab -l | grep -v 'customize.sh' | crontab -

for NETDEV in /sys/class/net/e*
do
DEVICE_LABEL=$(basename "$(readlink -f "$NETDEV/device")")
Expand Down

0 comments on commit 7bcdf94

Please sign in to comment.