function start () {
- echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
- echo "lxc-sliceimage: starting on $(date)"
+ echo "lxc-sliceimage: --- STARTING $(date) ---"
check_node
# create ref images from stubs
unfold_system_slices
- echo "lxc-sliceimage: done on $(date)"
- echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+ echo "lxc-sliceimage: --- DONE $(date) ---"
}
function status () {
# run with the --tty option to see results, otherwise get that logged
case "$1" in
--tty) shift;;
- *) exec >> /var/log/lxc-sliceimage.log 2>&1 ;;
+ *) exec >> /var/log/lxc-sliceimage 2>&1 ;;
esac
case "$1" in
exec >>/var/log/vserver-sliceimage
exec 2>&1
-echo "--- STARTING $(date) ---" >&3 2>&4
+echo "vserver-sliceimage: --- STARTING $(date) ---"
# Parse PLC configuration
if [ -r /etc/planetlab/plc_config ] ; then
[ -n "$FORCE" ] && message=Force-building
# Copy base reference image
- echo -n $"$message slice image for $NAME in $VREFNAME: " >&3 2>&4
+ echo -n $"$message slice image for $NAME in $VREFNAME: "
# Build in temporary directory
mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"
done
success >&3 2>&4
-echo "--- DONE $(date) ---" >&3 2>&4
+echo "vserver-sliceimage: --- DONE $(date) ---"
echo >&3 2>&4
exit 0