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

Implement hoster init check #11

Closed
yaroslav-gwit opened this issue Apr 29, 2023 · 1 comment
Closed

Implement hoster init check #11

yaroslav-gwit opened this issue Apr 29, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yaroslav-gwit
Copy link
Owner

I want to implement a feature that will check if the hoster was initialised after boot. This will improve the overall user experience, because sometimes one can simply forget to run init after the host has been rebooted.

The check will be integrated into every every function, and if hoster wasn't init-ed yet, the binary will exit with code 101 and a message stating that you need to execute hoster init first.

@yaroslav-gwit yaroslav-gwit added the enhancement New feature or request label Apr 29, 2023
@yaroslav-gwit yaroslav-gwit self-assigned this Apr 29, 2023
@yaroslav-gwit
Copy link
Owner Author

The feature has been implemented. Now every CLI command will check if the init file exists before executing the underlying functions. For the curious out there, the state file resides here:

/var/run/hoster_init

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