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

Adding support for a poweroff watcher #190

Closed

Conversation

jasonyates-thg
Copy link

Description

Expands the existing reboot watcher to provide support to power off the host system. Executes /sbin/poweroff once /worker/poweroff is written to disk

Why is this needed

Fixes: (#189)

How Has This Been Tested?

I am unable to build hook locally so this is untested.

How are existing users impacted? What migration steps/scripts do we need?

No impact

Executes /sbin/poweroff once /worker/poweroff is written to disk
@jacobweinstock
Copy link
Member

Hey @jasonyates-thg, thanks for this PR. I am hesitant to add this in because we've talked about adding this functionality as a builtin in the tink worker/agent. Also, there is an alternative way to go about it via waitdaemon

@chrisdoherty4
Copy link
Member

I agree with Jacob. I think we have sufficient workarounds and a good plan to provide builtins that'll solve the problem. Our builtins should follow the v1alpha2 API work that's ongoing.

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

Successfully merging this pull request may close these issues.

3 participants