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

Autostart Scripts after script-server start? #712

Open
klauweg opened this issue Nov 3, 2023 · 8 comments
Open

Autostart Scripts after script-server start? #712

klauweg opened this issue Nov 3, 2023 · 8 comments
Labels

Comments

@klauweg
Copy link

klauweg commented Nov 3, 2023

Is it possible to start scripts automatically after starting launcher.py?

@bugy
Copy link
Owner

bugy commented Nov 3, 2023

Hi @klauweg , unfortunately it's not :(

@bugy bugy added the feature label Nov 3, 2023
@MNeill73
Copy link

MNeill73 commented Nov 3, 2023 via email

@MNeill73
Copy link

MNeill73 commented Nov 3, 2023 via email

@bugy
Copy link
Owner

bugy commented Nov 3, 2023

@MNeill73 unfortunately there is no simple way to find out the last start time. The only way is to read server.log

@MNeill73
Copy link

MNeill73 commented Nov 3, 2023 via email

@klauweg
Copy link
Author

klauweg commented Nov 3, 2023

Hm, i thought about some tricks with the scheduling feature already.
It would be easy if there where an option to prevent a script from running with multiple Instances.
But it would be a bit poor anyway.

@klauweg
Copy link
Author

klauweg commented Nov 6, 2023

Maybe it could be feasible to create scheduling entries by a wrapper for script-server before starting it. Every configured script with enabled scheduling gets a one-shot entry let's say for one minute later. Afters starting script-server all prepared scripts will be started with a little delay.

Of course i would prefer to have a button on script-server webinterface to start them itself ;-).

@polzy
Copy link

polzy commented Jan 15, 2024

Hello,
The script works great, thank you very much.
The idea of automatically launching a script at script-server startup is a fantastic one.
In my organization, we have servers that shut down at night to manage energy consumption, and we need scripts to run when the server restarts.
The problem is that I cannot schedule the time. Some servers start as soon as someone arrives first and badges in the morning at the building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants