summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 09:41:49 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 09:41:49 +0000
commit9be236685dc6085817ea8ae996b91bbc1641d91c (patch)
treeb9f2b767d9f2eb154a0055d8c89208bebc70dfd3 /perl-install
parentcd76e0199a7d6e983875d424be9b67c493e4d8d7 (diff)
downloaddrakx-9be236685dc6085817ea8ae996b91bbc1641d91c.tar
drakx-9be236685dc6085817ea8ae996b91bbc1641d91c.tar.gz
drakx-9be236685dc6085817ea8ae996b91bbc1641d91c.tar.bz2
drakx-9be236685dc6085817ea8ae996b91bbc1641d91c.tar.xz
drakx-9be236685dc6085817ea8ae996b91bbc1641d91c.zip
handle services with "-" as default chkconfig level in more places (by reusing _set_service wrapper)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/services.pm4
2 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 62e3819d0..6493b6642 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -4,6 +4,8 @@
(*old* bug!)
- draksplash:
o fix reading grub conf (#39346)
+- services backend:
+ o handle services with "-" as default chkconfig level in more places
Version 10.20 - 25 March 2008
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 705f4eae3..82115c82f 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -383,12 +383,12 @@ sub starts_on_boot {
sub start_service_on_boot ($) {
my ($service) = @_;
- run_program::rooted($::prefix, "/sbin/chkconfig", "--add", $service);
+ _set_service($service, 1);
}
sub do_not_start_service_on_boot ($) {
my ($service) = @_;
- run_program::rooted($::prefix, "/sbin/chkconfig", "--del", $service);
+ _set_service($service, 0);
}
sub enable {