• Bug#265489: Pass all the actions to the init.d scripts

    From Mihai Maties@1:229/2 to All on Fri Aug 13 13:40:09 2004
    From: [email protected]

    Package: sysvconfig
    Version: 0.10
    Severity: wishlist
    Tags: patch


    There are some init.d scripts outhere that support more actions than the
    usual ones. I think a better aproach of the "service" script would be to
    pass all the actions to the init.d script and let it decide what actions supports and what actions doesn't.

    I've attached a patch that changes this behaviour.

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable'), (1, 'experimental')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-686-smp
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages sysvconfig depends on:
    ii dialog 1.0-20040731-1 Displays user-friendly dialog boxe

    -- no debconf information

    *** /aa
    --- service.old 2004-08-10 18:37:45.000000000 +0300
    +++ service 2004-08-13 14:13:45.000000000 +0300
    @@ -76,16 +76,12 @@

    # Handle two argument cases.
    case "$ACTION" in
    - stop | start | restart | status | reload | force-stop | force-reload )
    - $INVOKERC "$SERVICE" "$ACTION" && exit $?
    - ;;
    --full-restart )
    $INVOKERC "$SERVICE" stop || exit $?
    $INVOKERC "$SERVICE" start || exit $?
    exit 0
    ;;
    * )
    - echo "${ACTION}: no such action" >&2
    - exit 1
    + $INVOKERC "$SERVICE" "$ACTION" && exit $?
    ;;
    esac


    --
    This message was scanned for spam and viruses by BitDefender
    For more information please visit http://linux.bitdefender.com/



    --
    This message was scanned for spam and viruses by BitDefender
    For more information please visit http://www.bitdefender.com/



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedat