/[smeserver]/rpms/e-smith-base/sme7/e-smith-base-5.0.0-condrestart.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme7/e-smith-base-5.0.0-condrestart.patch

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


Revision 1.1 - (show annotations) (download)
Tue Jul 20 00:13:23 2010 UTC (14 years, 3 months ago) by charliebrady
Branch: MAIN
CVS Tags: e-smith-base-5_0_0-15_el4_sme, e-smith-base-5_0_0-16_el4_sme, e-smith-base-5_0_0-14_el4_sme, e-smith-base-5_0_0-17_el4_sme, HEAD
Avoid 'service xxx condrestart' errors when service is disabled.

1 --- e-smith-base-5.0.0/root/etc/rc.d/init.d/e-smith-service.condrestart 2010-07-18 15:09:17.000000000 -0400
2 +++ e-smith-base-5.0.0/root/etc/rc.d/init.d/e-smith-service 2010-07-19 20:10:48.000000000 -0400
3 @@ -50,14 +50,17 @@
4
5 STATUS=$( /sbin/e-smith/db configuration getprop ${SERVICE} status )
6
7 -case $1 in
8 - *start)
9 - if [ "${STATUS}" != "enabled" ]
10 - then
11 +if [ "${STATUS}" != "enabled" ]
12 +then
13 + case $1 in
14 + start)
15 exit 99
16 - fi
17 - ;;
18 -esac
19 + ;;
20 + condrestart)
21 + exit 0
22 + ;;
23 + esac
24 +fi
25
26 if [ -f ${INITSCRIPT} ]
27 then

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