1 |
slords |
1.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 |