We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30fac15 + 2528f6a commit 78a1972Copy full SHA for 78a1972
1 file changed
lib/Utils/Systemd.pm
@@ -60,7 +60,7 @@ sub systemctl {
60
croak "systemctl(): no command specified" if ($command =~ /^ *$/);
61
my $expect_false = $args{expect_false} ? '! ' : '';
62
my @script_params = ("${expect_false}systemctl --no-pager $command", timeout => $args{timeout}, fail_message => $args{fail_message});
63
- if ($command =~ /^(re)?start ([^ ]+)/) {
+ if ($command =~ /^(start|restart|enable) ([^ ]+)/) {
64
my $unit_name = $2;
65
$started_systemd_services{$unit_name} = 1;
66
}
0 commit comments