| Summary: | Systemctl restart customservice in Post installation scripts are not successful | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Veerabhadra <veeru.mallavarapu> | ||||
| Component: | yum | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.4 | CC: | dmach, james.antill, veeru.mallavarapu | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-09-24 12:34:05 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Veerabhadra
2016-10-18 05:47:52 UTC
This is a problem of your postinstall scriptlet, it should not be failing at the first place (Why do you use sudo when the package update is done by root?) and the service restart is being done by systemd. yum is only executing the respective commands and reporting the resulting exit code. IMHO this is not a bug and should be closed. Hi Karel Thanks for your response. I have tried without sudo also as a first step, however it was failing. So tried this approach. Really not sure why it is complaining. In the process of restarting, I am trying to stop my java service. What I found is that it is giving status code as 143, so I have handled it as successexitcode, but still no use. My further steps in the scripts are not being executed. I am attaching my service file here. Regards Veeru Created attachment 1216426 [details]
service file
Please find my service attached here.
Hi All, Did you get a chance to check my comments? Your early response is very much appreciated. Hi All, Did you get a chance to check my comments? Your early response is very much appreciated. This is not a bug in yum. This is a problem with package scriptlet that should be fixed in the spec file or somewhere else in the package. |