mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 08:59:42 +00:00
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 {
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue