/[smeserver]/rpms/initscripts/sme8/initscripts-8.45.38-smepatches.patch
ViewVC logotype

Contents of /rpms/initscripts/sme8/initscripts-8.45.38-smepatches.patch

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


Revision 1.1 - (show annotations) (download)
Sat Sep 17 21:29:55 2011 UTC (13 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: initscripts-8_45_38-2_el5_sme, initscripts-8_45_42-1_el5_sme, initscripts-8_45_44-3_el5_sme, initscripts-8_45_42-2_1_el5_sme, HEAD
* Sat Sep 17 2011 Shad L. Lords <slords@mail.com> 8.45.38-2.sme
- Exit with zero exit status for services not listed in configuration
  database to avoid failures in post scriptlets [SME: 1653]
- Merge in SME Server /sbin/e-smith/service wrapper so that only
  initscripts which exist in run-level 7 can be run. This ensures
  that the supervised service is run, if one exists, and protects
  against running "service httpd restart" [SME: 61, 1495]

1 diff -ruN initscripts-8.45.38.old/service initscripts-8.45.38/service
2 --- initscripts-8.45.38.old/service 2011-06-07 15:56:18.000000000 -0600
3 +++ initscripts-8.45.38/service 2011-09-17 15:28:44.325288756 -0600
4 @@ -58,6 +58,18 @@
5 esac
6 done
7
8 +runlevel=$(runlevel | cut -d" " -f2)
9 +if [ "$runlevel" = "7" ]
10 +then
11 + script=$(ls /etc/rc7.d/S??${SERVICE} 2>/dev/null | head -1)
12 + if [ -z "$script" ]
13 + then
14 + echo $"${SERVICE}: unrecognized service" >&2
15 + exit 0
16 + fi
17 + exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$script" ${OPTIONS}
18 +fi
19 +
20 if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
21 env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
22 else

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