56 lines
1.4 KiB
Diff
56 lines
1.4 KiB
Diff
|
Remove depencency on LSB. The redhat-lsb package pulls lot of dependencies
|
||
|
we do not care about (like X11, QT, ...). We want libcgroup to be able to
|
||
|
run without this bloat.
|
||
|
|
||
|
From: Jan Safranek <jsafrane@redhat.com>
|
||
|
---
|
||
|
|
||
|
scripts/init.d/cgconfig.in | 11 ++++++++++-
|
||
|
scripts/init.d/cgred.in | 10 +++++++++-
|
||
|
2 files changed, 19 insertions(+), 2 deletions(-)
|
||
|
|
||
|
|
||
|
diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in
|
||
|
index 543cb9f..80df311 100644
|
||
|
--- a/scripts/init.d/cgconfig.in
|
||
|
+++ b/scripts/init.d/cgconfig.in
|
||
|
@@ -46,7 +46,16 @@ servicename=cgconfig
|
||
|
#
|
||
|
# Source LSB routines
|
||
|
#
|
||
|
-. /lib/lsb/init-functions
|
||
|
+. /etc/rc.d/init.d/functions
|
||
|
+log_success_msg () {
|
||
|
+ echo -n $*; success "$*"; echo
|
||
|
+}
|
||
|
+log_failure_msg () {
|
||
|
+ echo -n $*; failure "$*"; echo
|
||
|
+}
|
||
|
+log_warning_msg () {
|
||
|
+ echo -n $*; warning "$*"; echo
|
||
|
+}
|
||
|
|
||
|
parse_mounts() {
|
||
|
while read name mountpt fs opts other
|
||
|
diff --git a/scripts/init.d/cgred.in b/scripts/init.d/cgred.in
|
||
|
index db9c2ac..e810d5b 100644
|
||
|
--- a/scripts/init.d/cgred.in
|
||
|
+++ b/scripts/init.d/cgred.in
|
||
|
@@ -40,7 +40,15 @@ CGRED_BIN=$sbindir/cgrulesengd
|
||
|
|
||
|
# Source function library & LSB routines
|
||
|
. /etc/rc.d/init.d/functions
|
||
|
-. /lib/lsb/init-functions
|
||
|
+log_success_msg () {
|
||
|
+ echo -n $*; success "$*"; echo
|
||
|
+}
|
||
|
+log_failure_msg () {
|
||
|
+ echo -n $*; failure "$*"; echo
|
||
|
+}
|
||
|
+log_warning_msg () {
|
||
|
+ echo -n $*; warning "$*"; echo
|
||
|
+}
|
||
|
|
||
|
# Read in configuration options.
|
||
|
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
|