server->ssh()->exec($command, sprintf('status-%s', $unit)); } /** * @throws SSHError */ public function start(string $unit): string { $command = <<server->ssh()->exec($command, sprintf('start-%s', $unit)); } /** * @throws SSHError */ public function stop(string $unit): string { $command = <<server->ssh()->exec($command, sprintf('stop-%s', $unit)); } /** * @throws SSHError */ public function restart(string $unit): string { $command = <<server->ssh()->exec($command, sprintf('restart-%s', $unit)); } /** * @throws SSHError */ public function enable(string $unit): string { $command = <<server->ssh()->exec($command, sprintf('enable-%s', $unit)); } /** * @throws SSHError */ public function disable(string $unit): string { $command = <<server->ssh()->exec($command, sprintf('disable-%s', $unit)); } }