Machine.pm: Don't add .service implicitly
Systemd will add .service anyway if no unit type is given.
This commit is contained in:
parent
06cbe62537
commit
3d6824feaa
@ -381,7 +381,7 @@ sub waitForUnit {
|
|||||||
|
|
||||||
sub waitForJob {
|
sub waitForJob {
|
||||||
my ($self, $jobName) = @_;
|
my ($self, $jobName) = @_;
|
||||||
return $self->waitForUnit($jobName . ".service");
|
return $self->waitForUnit($jobName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -398,13 +398,13 @@ sub waitForFile {
|
|||||||
|
|
||||||
sub startJob {
|
sub startJob {
|
||||||
my ($self, $jobName) = @_;
|
my ($self, $jobName) = @_;
|
||||||
$self->execute("systemctl stop $jobName.service");
|
$self->execute("systemctl stop $jobName");
|
||||||
# FIXME: check result
|
# FIXME: check result
|
||||||
}
|
}
|
||||||
|
|
||||||
sub stopJob {
|
sub stopJob {
|
||||||
my ($self, $jobName) = @_;
|
my ($self, $jobName) = @_;
|
||||||
$self->execute("systemctl stop $jobName.service");
|
$self->execute("systemctl stop $jobName");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user