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

Make "end session" a desktop icon #55

Open
putty182 opened this issue Dec 2, 2020 · 0 comments
Open

Make "end session" a desktop icon #55

putty182 opened this issue Dec 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@putty182
Copy link
Member

putty182 commented Dec 2, 2020

Just curious, instead of using cloud functions to cleanup upon shutdown, how about using gcloud alpha cloud-shell + nohup as an alternative to run the cleanup script(snapshots and so on).

Originally posted by @juzkev in #4 (comment)

Implement a desktop shortcut, within the rig, that triggers scale-down.sh activities. One option is to trigger a nohup'd command via gcloud alpha cloud-shell to trigger the scale down (being careful to appease cloud-shell's keep-alive checks)

Bonus points:
make this run only when a human "clicks shutdown" in windows (e.g. explictly only windows-initiated shutdowns, not GCP initiated ones which will occur via ACPI G2 Soft Off)

Doesn't seem to be a way to reliably react only to ACPI G2 via Windows, so perhaps there might be something in GCP that could trigger this.

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

No branches or pull requests

1 participant