1 |
--- initscripts-8.45.17.EL/service.smeserver-service 2006-08-01 13:56:57.000000000 -0600 |
2 |
+++ initscripts-8.45.17.EL/service 2007-12-20 11:46:25.000000000 -0700 |
3 |
@@ -58,6 +58,18 @@ |
4 |
esac |
5 |
done |
6 |
|
7 |
+runlevel=$(runlevel | cut -d" " -f2) |
8 |
+if [ "$runlevel" = "7" ] |
9 |
+then |
10 |
+ script=$(ls /etc/rc7.d/S??${SERVICE} 2>/dev/null | head -1) |
11 |
+ if [ -z "$scripts" ] |
12 |
+ then |
13 |
+ echo $"${SERVICE}: unrecognized service" >&2 |
14 |
+ exit 0 |
15 |
+ fi |
16 |
+ exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "$script" ${OPTIONS} |
17 |
+fi |
18 |
+ |
19 |
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then |
20 |
env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} |
21 |
else |