summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-09-15 13:26:30 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-09-15 13:26:30 +0100
commit7c3631482286d17a2983a47295ce9b0872780a8d (patch)
treee158d5b11c694c2a05522ab274f2bb9bb8ca756b /perl-install/services.pm
parent29e2fa03969ce6c30217693df27e2d5c7b38267e (diff)
downloaddrakx-7c3631482286d17a2983a47295ce9b0872780a8d.tar
drakx-7c3631482286d17a2983a47295ce9b0872780a8d.tar.gz
drakx-7c3631482286d17a2983a47295ce9b0872780a8d.tar.bz2
drakx-7c3631482286d17a2983a47295ce9b0872780a8d.tar.xz
drakx-7c3631482286d17a2983a47295ce9b0872780a8d.zip
Fix GUI start/stop for systemd sockets and timers.
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r--perl-install/services.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 69de0cb00..d7448c0ae 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -281,10 +281,7 @@ sub ask_standalone_gtk {
gtkpack__(Gtk3::HBox->new(0,0), gtksignal_connect(Gtk3::Button->new(translate($a)),
clicked => sub {
my $action = $a eq "Start" ? 'restart' : 'stop';
- log::explanations(qq(GP_LANG="UTF-8" service $service $action));
- # as we need the output in UTF-8, force it
- local $_ = `GP_LANG="UTF-8" service $service $action 2>&1`; s/\033\[[^mG]*[mG]//g;
- c::set_tagged_utf8($_);
+ _run_action($service, $action);
$update_service->($service, $label);
})) if !$is_xinetd_service;
} (N_("Start"), N_("Stop"))