We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9548ff7 commit a99d924Copy full SHA for a99d924
1 file changed
src/SystemCtl.php
@@ -233,12 +233,24 @@ public function getSockets(?string $unitPrefix = null): array
233
* Restart the daemon to reload specs and new units
234
*
235
* @return bool
236
+ * @throws Exception\CommandFailedException
237
*/
238
public function daemonReload(): bool
239
{
240
return $this->getCommandDispatcher()->dispatch('daemon-reload')->isSuccessful();
241
}
242
243
+ /**
244
+ * Reset failed state of all unit so they won't be listed using listUnits
245
+ *
246
+ * @return bool
247
248
+ */
249
+ public function resetFailed(): bool
250
+ {
251
+ return $this->getCommandDispatcher()->dispatch('reset-failed')->isSuccessful();
252
+ }
253
+
254
/**
255
* @return CommandDispatcherInterface
256
0 commit comments