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

Check if Presto is not running before erasing RPM #67

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

kokosing
Copy link
Member

Check if Presto is running before erasing RPM

@cla-bot cla-bot bot added the cla-signed label Jan 25, 2019
@kokosing
Copy link
Member Author

Copy of prestodb/presto#11128

@kokosing kokosing changed the title Check if Presto is running before erasing RPM Check if Presto is not running before erasing RPM Jan 25, 2019
@@ -83,6 +83,7 @@
<architecture>x86_64</architecture>
Copy link
Member Author

Choose a reason for hiding this comment

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

update commit message to:

Check if Presto is not running before erasing RPM

Copy link
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

Build failure seems unrelated.

@@ -0,0 +1,6 @@
# Pre erase script

if ! /etc/init.d/presto status | grep -q 'Not running'; then
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to grep for a message? Per the LSB standard, can we simply check for status 3?

http://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html

Copy link
Member Author

Choose a reason for hiding this comment

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

I check for non zero. In case of such status (see exit status of 1, 2)it would be nice to give a user a chance to cleanup.

@kokosing kokosing force-pushed the origin/master/062_rpm branch from 5892cbc to d13fbf9 Compare January 29, 2019 09:52
@kokosing kokosing merged commit d13fbf9 into trinodb:master Jan 29, 2019
@kokosing kokosing deleted the origin/master/062_rpm branch January 29, 2019 09:52
@kokosing kokosing mentioned this pull request Jan 31, 2019
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants