-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New attribute to control pot stop (#275)
By setting exec_stop and stop_timeout (which correspond to jail(8) attributes exec.stop and stop.timeout), the user has better control over shutting down a pot. For "fat" pots this could mean setting pot set-attr -A exec_stop -V "/bin/sh /etc/rc.shutdown jail" for light jails (like nomad controlled using tinirc), this could point to a simple script that make sure the wrapped process is stopped gracefully and, in case multiple processes are running inseide of the pot, make sure they're terminated in the correct order. Also: - Fix a typo that made the nullfs attribute not work. - Make pot start use _save_params, which makes wrapping attributes safer and therefore allows to remove a shellcheck exemption.
- Loading branch information
Showing
5 changed files
with
101 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters