add --f oprionto run grapper also when disabled

This commit is contained in:
salam committed 2026-01-14 18:02:06 +01:00
1 parent 6978f8095c
commit 66e064257a
3 files changed
+8 -6

No files matched your search

+2 -1
View File
@@ -16,6 +16,7 @@ class Supervisorctl
$debug = $options['d'] ?? 0;
$proxy = $options['p'] ?? 0;
$maker = $options['x'] ?? 0;
$runanyway = $options['f'] ?? 0;
// sleep for 0,5 seconds
usleep(500000);
@@ -54,7 +55,7 @@ class Supervisorctl
}
}
if (! $options['is_active']) {
if (! $options['is_active'] && ! $runanyway) {
Notice::note('Process disabled, sleeps 2 min then exit', 'r');
sleep(120);
exit;