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

Fix Cannot set property ExecStopPost, or unknown property Directly operat… #92

Closed

Conversation

jinjianming
Copy link

@jinjianming jinjianming commented Jan 11, 2024

I have reviewed many materials but still cannot implement ExecStoppPost or StoppPost through dbus API. Based on my experience with Linux, I can directly write ExecStoppPost to the service file

This method may not be the best solution, but it has indeed been implemented

…ing file non dbus APIs in earlier versions of Systemd
@jinjianming
Copy link
Author

jinjianming commented Jan 11, 2024

  • This is effective for lower versions of Systemd
  • I used kill -9 to simulate an abnormal exit, and it did trigger the ExecStopPost operation
  • Creating ExecStoppPost using dbus API in higher versions
image

@jinjianming
Copy link
Author

#69

@vitalif
Copy link
Collaborator

vitalif commented Feb 12, 2024

Hi, did you try the version from master (not released yet) with just StopPost?

@vitalif vitalif closed this in bcb8029 Feb 12, 2024
@vitalif
Copy link
Collaborator

vitalif commented Feb 12, 2024

Ok, I checked it myself on centos 7, StopPost doesn't work
Thanks for idea by the way, I made my own fix based on it. Check it out in the master branch!

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