diff options
author | Colin Guthrie <colin@mageia.org> | 2012-04-29 11:52:09 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-04-29 11:52:09 +0000 |
commit | f8f2b23fb7e902831befd7b72613a82fe627b085 (patch) | |
tree | 7c4a0fe421a242c21bdf0404bb76e296a53fd3d8 /perl-install/services.pm | |
parent | 900590657e31ed9da66718da7d7fdbe59408c226 (diff) | |
download | drakx-f8f2b23fb7e902831befd7b72613a82fe627b085.tar drakx-f8f2b23fb7e902831befd7b72613a82fe627b085.tar.gz drakx-f8f2b23fb7e902831befd7b72613a82fe627b085.tar.bz2 drakx-f8f2b23fb7e902831befd7b72613a82fe627b085.tar.xz drakx-f8f2b23fb7e902831befd7b72613a82fe627b085.zip |
services: Use no-block mode for service start/stop under systemd.
This is perhaps the same issue as the 'cpufreq' bug on first boot,
but by changing things to use systemctl directly, I have inadvertantly
bypased the solution and reintroduced the bug.
As there is likely no reason to block, we will simply use no-block mode
unconditionally. Longer term, we may need to decide under what context
we are restarting/starting a given service (i.e. in an interactive GUI
vs from a script) and use the appropriate mode with appropriate user
feedback.
https://bugs.mageia.org/show_bug.cgi?id=4439
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r-- | perl-install/services.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm index 99172f78e..6eab201be 100644 --- a/perl-install/services.pm +++ b/perl-install/services.pm @@ -326,7 +326,7 @@ sub _set_service { sub _run_action { my ($service, $action) = @_; if (running_systemd()) { - run_program::rooted($::prefix, '/bin/systemctl', $action, "$service.service"); + run_program::rooted($::prefix, '/bin/systemctl', '--no-block', $action, "$service.service"); } else { run_program::rooted($::prefix, "/etc/rc.d/init.d/$service", $action); } |