Ignore:
Timestamp:
Feb 5, 2009, 3:19:28 AM (16 years ago)
Author:
broder
Message:

Always exec instead of fork&exec on the remctl server so that return
codes get passed on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy

    r1822 r2094  
    1414case "$TYPE/$SERVICE" in
    1515    web/listvms )
    16         invirt-remote-listvms "$@" ;;
     16        exec invirt-remote-listvms "$@" ;;
    1717    web/vnccert )
    18         invirt-remote-vnccert "$@" ;;
     18        exec invirt-remote-vnccert "$@" ;;
    1919    control/help )
    20         invirt-remctl-help ;;
     20        exec invirt-remctl-help ;;
    2121    control/create|control/install )
    22         invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
     22        exec invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
    2323    control/listhost|control/list-host )
    24         invirt-remote-listhost "$MACHINE" "$@" ;;
     24        exec invirt-remote-listhost "$MACHINE" "$@" ;;
    2525    control/* )
    2626        # Everything but create must go where the VM is already running.
    27         invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
     27        exec invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
    2828    * )
    29         remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
     29        exec remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
    3030esac
Note: See TracChangeset for help on using the changeset viewer.