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

update vnstat_backup service to start before and end after the vnstat service #310

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

bdaylik
Copy link
Contributor

@bdaylik bdaylik commented Mar 25, 2024

Currently vnstat_backup service runs after vnstat runs and overwrites newly initialized database of vnstat causing it to crash and restart.

Moving vnstat_backup service before vnstat lets it create the database before vnstat runs. This allows an error free operation.

Similarly moving vnstat_backup termination after vnstat lets it backup a database after all of its file handles are closed making sure that the database won't be corrupt.

… service

Currently vnstat_backup service runs after vnstat runs and overwrites newly initialized database of vnstat causing it to crash and restart.

Moving vnstat_backup service before vnstat lets it create the database before vnstat runs. This allows an error free operation.
@Ysurac Ysurac merged commit 4be2308 into Ysurac:develop Mar 25, 2024
@Ysurac
Copy link
Owner

Ysurac commented Mar 25, 2024

thanks

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