Skip to content

Conversation

@DAlperin
Copy link
Contributor

@DAlperin DAlperin commented Sep 1, 2022

In some nonstandard environments (see fly.io for an example) that the
server itself will be PID 1 is not a given. By allowing the user to
choose to use pkill instead they can ensure the autostop feature will
work even in those environments.

@DAlperin
Copy link
Contributor Author

DAlperin commented Sep 2, 2022

@itzg it now uses pkill by default, has a flag to use sudo with it, and rewrote commit to reflect new behavior 👍🏼 Let me know what you think

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One little tweak left

Add aditional AUTOSTOP_PKILL_USE_SUDO setting to run pkill with sudo
@DAlperin
Copy link
Contributor Author

DAlperin commented Sep 2, 2022

Fixed!

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@itzg itzg merged commit 3c131f8 into itzg:master Sep 2, 2022
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.

2 participants