Bug 1685598
| Summary: | Do not use sysV init script for anamon | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Lukas Slebodnik <lslebodn> |
| Component: | general | Assignee: | Tomas Klohna 🔧 <tklohna> |
| Status: | CLOSED UPSTREAM | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | develop | CC: | bpeck, breilly, cbeer, mastyk, tklohna |
| Target Milestone: | 26.4 | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-04-05 13:38:54 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: | |
| Embargoed: | |||
|
Description
Lukas Slebodnik
2019-03-05 15:34:29 UTC
It should not be complicated to write simple systemd service file and store it in /etc/systemd/system/anamon.service (if you do not want to add it into /the directory /usr/lib/systemd/system/ I can see you added following check +# OS without `initscripts` need to use systemd +if [ -d /etc/init.d/functions ]; then Is there any reason why you do not want to do that also on rhel7 ? e.g. +# OS without `initscripts` need to use systemd +if [ -x /usr/bin/systemctl ]; then And tiny question. What is a purpose of anamon. Because I cannot see any issues with reserving rawhide machine in beaker. > Is there any reason why you do not want to do that also on rhel7 ? Pretty simple, because the old solution works and there is no need to change it as it has been tested numerous times. > And tiny question. What is a purpose of anamon. "Anamon", the ANAconda MONitoring script. This runs during Anaconda installations and periodically uploads Anaconda logs to Beaker. Beaker 26.4 has been released. It does not work for me [root@kvm-01-guest20 ~]# systemctl status anamon ● anamon.service Loaded: bad-setting (Reason: Unit anamon.service has a bad unit file setting.) Active: inactive (dead) Apr 05 15:01:41 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:1: Missing '='. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:1: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:2: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:3: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:4: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:5: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:6: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:7: Assignment outside of section. Ignoring. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: anamon.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing. Apr 05 15:04:33 kvm-01-guest20.testrelm.test systemd[1]: /etc/systemd/system/anamon.service:1: Missing '='. [root@kvm-01-guest20 ~]# cat /etc/systemd/system/anamon.service <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /beaker/anamon.service was not found on this server.</p> </body></html> |