Parent Directory | Revision Log | Revision Graph
Avoid 'service xxx condrestart' errors when service is disabled.
1 | charliebrady | 1.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 |