File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -233,12 +233,24 @@ public function getSockets(?string $unitPrefix = null): array
233
233
* Restart the daemon to reload specs and new units
234
234
*
235
235
* @return bool
236
+ * @throws Exception\CommandFailedException
236
237
*/
237
238
public function daemonReload (): bool
238
239
{
239
240
return $ this ->getCommandDispatcher ()->dispatch ('daemon-reload ' )->isSuccessful ();
240
241
}
241
242
243
+ /**
244
+ * Reset failed state of all unit so they won't be listed using listUnits
245
+ *
246
+ * @return bool
247
+ * @throws Exception\CommandFailedException
248
+ */
249
+ public function resetFailed (): bool
250
+ {
251
+ return $ this ->getCommandDispatcher ()->dispatch ('reset-failed ' )->isSuccessful ();
252
+ }
253
+
242
254
/**
243
255
* @return CommandDispatcherInterface
244
256
*/
You can’t perform that action at this time.
0 commit comments