summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
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/services.pm
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/services.pm')
-rw-r--r--perl-install/services.pm4
1 files changed, 2 insertions, 2 deletions
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 {