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

Fix #440: various fixes for vm_devbox systemd #441

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

e-carlin
Copy link
Member

@e-carlin e-carlin commented Feb 5, 2024

  • remove PrivateTmp this was causing many problems
  • Type=forking the vm process forks and stays running after vagrant up exits
  • vagrant reload after setting forwarded_port (need to reload for change to take)
  • execStop needs to be an abspath and needs to be in /srv/vm_devbox_user. Just use a stop script and call it
  • TimeoutStartSec=10min. With Type=forking the timeout is at play

- remove PrivateTmp this was causing many problems
- Type=forking the vm process forks and stays running after vagrant up exits
- vagrant reload after setting forwarded_port (need to reload for change to take)
- execStop needs to be an abspath and needs to be in /srv/vm_devbox_user. Just use a stop script and call it
- TimeoutStartSec=10min. With Type=forking the timeout is at play
@e-carlin e-carlin requested a review from robnagler February 5, 2024 21:56
@e-carlin e-carlin merged commit e09fa89 into master Feb 5, 2024
2 checks passed
@e-carlin e-carlin deleted the 440-vm-devbox branch February 5, 2024 21:59
Copy link
Member

@robnagler robnagler left a comment

Choose a reason for hiding this comment

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

A bug and a format.

set -eou pipefail

vm_devbox_main() {
cd {{ this.run_d }}
Copy link
Member

Choose a reason for hiding this comment

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

cd '{{ this.run_d }}'

@@ -56,6 +57,7 @@ def internal_build_write(self):
self.install_directory(z.run_d)
self.install_access(mode="500", owner=z.run_u)
self.install_resource("vm_devbox/start.sh", host_path=z.start_f)
self.install_resource("vm_devbox/start.sh", host_path=z.stop_f)
Copy link
Member

Choose a reason for hiding this comment

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

start.sh > stop.sh

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