/[smeserver]/rpms/initscripts/sme7/initscripts-7.93.34-smerunlevel.patch
ViewVC logotype

Contents of /rpms/initscripts/sme7/initscripts-7.93.34-smerunlevel.patch

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


Revision 1.1 - (show annotations) (download)
Mon Aug 24 15:19:21 2009 UTC (15 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: initscripts-7_93_34-1_centos4_1_el4_sme, initscripts-7_93_35-1_el4_sme, HEAD
* Mon Aug 24 2009 Shad L. Lords <slords@mail.com> 7.93.34-1.centos4.1.sme
- Reapply SME Server patches [SME: 2043]
- 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 --- initscripts-7.93.34/service.smerunlevel 2009-01-23 05:36:40.000000000 -0700
2 +++ initscripts-7.93.34/service 2009-08-24 09:16:41.000000000 -0600
3 @@ -60,6 +60,20 @@
4 esac
5 done
6
7 +runlevel=$(runlevel | cut -d" " -f2)
8 +
9 +if [ "$runlevel" = "7" ]
10 +then
11 + if ls /etc/rc7.d/S??${SERVICE} >/dev/null 2>/dev/null
12 + then
13 + script=$(ls /etc/rc7.d/S??${SERVICE} | head -1)
14 + exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$script" ${OPTIONS}
15 + fi
16 +
17 + echo "'${SERVICE}' is not a valid service name" 1>&2
18 + exit 0
19 +fi
20 +
21 if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
22 env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
23 else

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