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 | be74eee236ba566c90606e9c5b551f6854531fff (patch) | |
tree | 7c4a0fe421a242c21bdf0404bb76e296a53fd3d8 /perl-install | |
parent | babb73627a7025cf36bdbe08a877d13433f70fe4 (diff) | |
download | drakx-backup-do-not-use-be74eee236ba566c90606e9c5b551f6854531fff.tar drakx-backup-do-not-use-be74eee236ba566c90606e9c5b551f6854531fff.tar.gz drakx-backup-do-not-use-be74eee236ba566c90606e9c5b551f6854531fff.tar.bz2 drakx-backup-do-not-use-be74eee236ba566c90606e9c5b551f6854531fff.tar.xz drakx-backup-do-not-use-be74eee236ba566c90606e9c5b551f6854531fff.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')
-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); } |