/[smecontribs]/rpms/smeserver-bridge-interface/contribs7/smeserver-bridge-interface-0.1-display_stop_start.patch
ViewVC logotype

Annotation of /rpms/smeserver-bridge-interface/contribs7/smeserver-bridge-interface-0.1-display_stop_start.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri May 29 07:39:45 2009 UTC (15 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-bridge-interface-0_1-4_el4_sme, smeserver-bridge-interface-0_1-5_el4_sme, smeserver-bridge-interface-0_1-6_el4_sme, HEAD
init script now display starting/stoping

1 vip-ire 1.1 --- smeserver-bridge-interface-0.1/root/etc/rc.d/init.d/bridge.display_stop_start 2009-05-29 09:28:14.000000000 +0200
2     +++ smeserver-bridge-interface-0.1/root/etc/rc.d/init.d/bridge 2009-05-29 09:34:37.000000000 +0200
3     @@ -133,24 +133,36 @@
4    
5     case "$1" in
6     start)
7     + echo -n $"Starting Bridge Service: "
8     start
9     - success; echo
10     - ;;
11     + RETVAL=$?
12     + ;;
13     stop)
14     + echo -n $"Stoping Bridge Service: "
15     stop
16     - success; echo
17     - ;;
18     + RETVAL=$?
19     + ;;
20     restart)
21     + echo -n $"Restarting Bridge Service: "
22     stop && start
23     - success; echo
24     - ;;
25     + RETVAL=$?
26     + ;;
27     adjust)
28     + echo -n $"Restarting Bridge Service: "
29     stop && start
30     - success; echo
31     - ;;
32     + RETVAL=$?
33     + ;;
34     *)
35     echo "Usage: $0 start|stop|restart"
36     ;;
37     esac
38    
39     -exit 0
40     +if [ $RETVAL -eq 0 ]; then
41     + echo_success
42     +else
43     + echo_failure
44     +fi
45     +echo
46     +
47     +exit $RETVAL
48     +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed