Bug 50664 - univention-translog import should not start services that are not running
univention-translog import should not start services that are not running
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-12-19 19:17 CET by Arvid Requate
Modified: 2020-08-26 11:03 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019121921000565
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2019-12-19 19:17:56 CET
In a support situation I had notifier and listner stopped and slapd carfully started to only listen on ldapi to be able to fix an issue with the transaction file and cn=translog. With a hughe surprise I discovered that the univention-translog tool starts these services again automatically after it has run. Maybe it's pssible to avoid that?
Comment 1 Philipp Hahn univentionstaff 2020-08-25 17:36:26 CEST
univention-translog check --skip-services
Comment 2 Arvid Requate univentionstaff 2020-08-25 19:26:23 CEST
Ok, cool, that should be default.
Comment 3 Philipp Hahn univentionstaff 2020-08-26 09:01:24 CEST
(In reply to Arvid Requate from comment #2)
> Ok, cool, that should be default.

No: univention-translog was and is designed as a tool to be used by regular administrators to help them fix SOME translog related issues; as such it starts/stops services as needed.
On the other hand it gives you enough rope to hang yourself if you consider yourself an expert user.
Comment 4 Arvid Requate univentionstaff 2020-08-26 10:53:09 CEST
If the services are stopped at the point I call a "check" script,
then the services shoud not get started. Think crestart.
Comment 5 Philipp Hahn univentionstaff 2020-08-26 11:03:20 CEST
(In reply to Arvid Requate from comment #4)
> If the services are stopped at the point I call a "check" script,
> then the services shoud not get started. Think crestart.

RTF-source-code: univention-translog:690 "def stopped()":
The services are ONLY stopped / started if the "--fix" option is given!