Machine.pm: Don't add .service implicitly

Systemd will add .service anyway if no unit type is given.
This commit is contained in:
Eelco Dolstra 2012-10-19 10:32:09 -04:00
parent 06cbe62537
commit 3d6824feaa

View File

@ -381,7 +381,7 @@ sub waitForUnit {
sub waitForJob {
my ($self, $jobName) = @_;
return $self->waitForUnit($jobName . ".service");
return $self->waitForUnit($jobName);
}
@ -398,13 +398,13 @@ sub waitForFile {
sub startJob {
my ($self, $jobName) = @_;
$self->execute("systemctl stop $jobName.service");
$self->execute("systemctl stop $jobName");
# FIXME: check result
}
sub stopJob {
my ($self, $jobName) = @_;
$self->execute("systemctl stop $jobName.service");
$self->execute("systemctl stop $jobName");
}