OpenVZ Forum


Home » General » Support » OpenVZ and Debian
Re: OpenVZ and Debian [message #860 is a reply to message #842] Mon, 16 January 2006 21:25 Go to previous messageGo to previous message
adebisi is currently offline  adebisi
Messages: 18
Registered: January 2006
Location: Italy
Junior Member
Ok looklike it works now.

I am actually trying to create a vs debian.

Anyway i had to add following to your init script:

(from functions file taken from redhat 9)

Quote:


#. /etc/rc.d/init.d/functions

action() {
STRING=$1
echo -n "$STRING "
shift
#initlog $INITLOG_ARGS -c "$*" && success $"$STRING" || failure $"$STRING"
rc=$?
echo
return $rc
}

echo_success() {
[ "$BOOTUP" = "color" ] && $MOVE_TO_COL
echo -n "[ "
[ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
echo -n $"OK"
[ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
echo -n " ]"
echo -ne "\r"
return 0
}

success() {
# if [ -z "${IN_INITLOG:-}" ]; then
# initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
# else
# silly hack to avoid EPIPE killing rc.sysinit
trap "" SIGPIPE
# echo "$0 \"$1\" 1" >&21
trap - SIGPIPE
[ "$BOOTUP" != "verbose" -a -z "$LSB" ] && echo_success
return 0
}
#Disable everywhere initlog command cause i didnt find any #initlog package for debian.



Of course i could also create a file functions with these functions and let your script include it.

I used your binary packages to do that.

So .. i am checking and let you know if it works totally or not.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: filesystem: ext2 or ext3?
Next Topic: How does one add GCC to their VPS?
Goto Forum:
  


Current Time: Mon Jul 22 06:22:27 GMT 2024

Total time taken to generate the page: 0.02450 seconds