diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-27 09:43:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-27 09:43:42 +0000 |
commit | cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed (patch) | |
tree | 9752530b364ea42e9d02b826f4900232583b955a /perl-install/services.pm | |
parent | 619f4850b64fec4eb1a1961ae6b25a61b0568f91 (diff) | |
download | drakx-cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed.tar drakx-cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed.tar.gz drakx-cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed.tar.bz2 drakx-cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed.tar.xz drakx-cee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed.zip |
add a FIXME note about services with no chkconfig line and with no Default-Start levels in LSB header
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r-- | perl-install/services.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm index 99cfa1874..3fe024ae8 100644 --- a/perl-install/services.pm +++ b/perl-install/services.pm @@ -264,6 +264,7 @@ sub _set_service { my ($service, $enable) = @_; my $script = "/etc/rc.d/init.d/$service"; run_program::rooted($::prefix, "chkconfig", $enable ? "--add" : "--del", $service); + #- FIXME: handle services with no chkconfig line and with no Default-Start levels in LSB header if ($enable && cat_("$::prefix$script") =~ /^#\s+chkconfig:\s+-/m) { run_program::rooted($::prefix, "chkconfig", "--level", "35", $service, "on"); } |