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

systemd: add resource-agents-deps target #974

Merged
merged 1 commit into from Jun 13, 2017

Conversation

oalbrigt
Copy link
Contributor

@oalbrigt oalbrigt commented May 3, 2017

clvmd and LVM will create drop-ins on start to avoid nodes being fence during shutdown or reboot.

@oalbrigt
Copy link
Contributor Author

oalbrigt commented May 3, 2017

After= and Wants= will be added to pacemaker.service.

@@ -426,6 +426,18 @@ LVM_start() {
local vg=$1
local clvmd=0

# systemd drop-in to stop process before storage services during
# shutdown/reboot
if ps -p 1 | grep -q systemd ; then
Copy link
Member

Choose a reason for hiding this comment

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

Looks like something we want a function for.

Copy link
Contributor

Choose a reason for hiding this comment

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

From the man page of sd_booted():

Internally, this function checks whether the directory /run/systemd/system/ exists. A simple check like this can also be implemented trivially in shell or any other language.

@dmuhamedagic
Copy link
Contributor

dmuhamedagic commented May 4, 2017 via email

@oalbrigt
Copy link
Contributor Author

oalbrigt commented May 5, 2017

He meant the drop-in, so I have now made a systemd_drop_in function that is being used by the 2 agents.

@dmuhamedagic
Copy link
Contributor

dmuhamedagic commented May 5, 2017 via email

@oalbrigt
Copy link
Contributor Author

drop-in is a systemd "override" file that can add After= or similar dependencies.

@oalbrigt oalbrigt merged commit a56c89a into ClusterLabs:master Jun 13, 2017
@oalbrigt oalbrigt deleted the systemd-deps-target branch April 16, 2018 12:06
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.

None yet

4 participants