Diff of /trunk/initscripts/sysvinit/rc/functions
Parent Directory | Revision Log | Patch
revision 317 by niro, Tue Jan 3 18:03:11 2006 UTC | revision 931 by niro, Thu Nov 5 12:57:14 2009 UTC | |
---|---|---|
# | Line 1 | Line 1 |
1 | #!/bin/bash | #!/bin/bash |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/functions,v 1.6 2006-01-03 18:03:11 niro Exp $ | # $Id$ |
3 | ||
4 | # Begin $rc_base/init.d/functions - Run Level Control Functions | # Begin $rc_base/init.d/functions - Run Level Control Functions |
5 | ||
# | Line 137 update_svcstatus() | Line 137 update_svcstatus() |
137 | ||
138 | evaluate_retval() | evaluate_retval() |
139 | { | { |
140 | error_value=$? | local error_value="$1" |
141 | [[ -z ${error_value} ]] && error_value=$? | |
142 | ||
143 | if [ $error_value = 0 ] | if [[ ${error_value} = 0 ]] |
144 | then | then |
145 | print_status success | print_status success |
146 | else | else |
147 | print_status failure | print_status failure |
148 | fi | fi |
149 | ||
150 | return $error_value | return ${error_value} |
151 | } | } |
152 | ||
153 | print_status() | print_status() |
|