Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler: Support for running custom commands at the end of a schedule #842

Merged
merged 5 commits into from
Dec 2, 2023

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Nov 30, 2023

Closes #45

Supports multiple commands, one per line.

If root is available, the command will be run with root.
If root is not available, but Shizuku is, then Shizuku will be used.
Otherwise normal app shell priviledges are used.

Screenshot from 2023-11-30 18-24-26
Screenshot from 2023-11-30 18-24-17

@d4rken d4rken added enhancement New feature, request, improvement or optimization c: Scheduler labels Nov 30, 2023
@d4rken d4rken marked this pull request as draft December 2, 2023 19:31
If the user uses a reboot command, then the reboot will kill the worker, and the system will retry the work, and we end up in a loop.

Not sure why the worker would crash or die, but this could also prevent issues like #692
…zuku

Otherwise users will try to put "reboot" in there or something, and wonder why it doesn't work.
@d4rken d4rken marked this pull request as ready for review December 2, 2023 19:51
@d4rken d4rken merged commit 60fc360 into main Dec 2, 2023
@d4rken d4rken deleted the reboot_task branch December 2, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Scheduler enhancement New feature, request, improvement or optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add reboot to scheduler
1 participant