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

Wait for pid to disappear and tidy #11

Merged
merged 2 commits into from
Mar 5, 2018
Merged

Conversation

John-Holt-Tessella
Copy link
Contributor

Wait for the pid of the mysql process to disappear before backing up database.
Split large python file into smaller files.
Use run process.

self._prompt.prompt_and_raise_if_not_yes(
"Stopping the MySQL service failed. Please do it manually")
except OSError:
RunProcess(SYSTEM_SETUP_PATH, "mysql.exe", executable_directory=mysql_bin_dir,
Copy link
Contributor

@DominicOram DominicOram Feb 26, 2018

Choose a reason for hiding this comment

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

Do these have to be run from the SYSTEM_SETUP_PATH? At this point we don't know if that path exists.

Copy link
Contributor

Choose a reason for hiding this comment

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

In fact, if you've chosen to backup the EPICS directory it has been moved earlier in the script and this will fail.

@DominicOram DominicOram merged commit 5256a7f into master Mar 5, 2018
@DominicOram DominicOram deleted the Ticket2864_Fix_data_backup branch March 5, 2018 14:14
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