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

Contents of /rpms/initscripts/sme7/smeserver-initscripts-service.patch

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


Revision 1.3 - (show annotations) (download)
Fri Sep 12 03:13:31 2008 UTC (15 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: initscripts-7_93_33-1_centos4_el4_sme
Changes since 1.2: +0 -0 lines
* Thu Sep 11 2008 Shad L. Lords <slords@mail.com> 7.93.33-1.centos4.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 diff -Nur -x '*.orig' -x '*.rej' initscripts-7.93.25.EL/service mezzanine_patched_initscripts-7.93.25.EL/service
2 --- initscripts-7.93.25.EL/service 2005-12-03 06:00:44.000000000 +1100
3 +++ mezzanine_patched_initscripts-7.93.25.EL/service 2006-11-17 16:44:18.556439452 +1100
4 @@ -60,6 +60,20 @@
5 esac
6 done
7
8 +runlevel=$(runlevel | cut -d" " -f2)
9 +
10 +if [ "$runlevel" = "7" ]
11 +then
12 + if ls /etc/rc7.d/S??${SERVICE} >/dev/null 2>/dev/null
13 + then
14 + script=$(ls /etc/rc7.d/S??${SERVICE} | head -1)
15 + exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$script" ${OPTIONS}
16 + fi
17 +
18 + echo "'${SERVICE}' is not a valid service name" 1>&2
19 + exit 0
20 +fi
21 +
22 if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
23 env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
24 else

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