Univention Bugzilla – Full Text Bug Listing |
Summary: | Add Diagnostic check for tdb errors in sam.ldb.d/* | ||
---|---|---|---|
Product: | UCS | Reporter: | Arvid Requate <requate> |
Component: | UMC - System diagnostic | Assignee: | Fathan Vidjaja <vidjaja> |
Status: | CLOSED FIXED | QA Contact: | Felix Botner <botner> |
Severity: | normal | ||
Priority: | P5 | CC: | vidjaja |
Version: | UCS 4.4 | ||
Target Milestone: | UCS 4.4-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 2: Improvement: Would be a product improvement |
Who will be affected by this bug?: | 1: Will affect a very few installed domains | How will those affected feel about the bug?: | 2: A Pain – users won’t like this once they notice it |
User Pain: | 0.023 | Enterprise Customer affected?: | |
School Customer affected?: | Yes | ISV affected?: | |
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2019042321000705 | Bug group (optional): | |
Max CVSS v3 score: | |||
Attachments: |
redirecting from stdout to stderror
Refactor all error on exit in script |
Description
Arvid Requate
2019-04-30 17:47:58 CEST
Created attachment 10058 [details]
redirecting from stdout to stderror
echo .. exit 1 occurs several times, we should handle all of those, maybe die() { echo "$*" 1>&2 ; exit 1; } instead of echo "Error while backing up $file with tdbbackup - status $Status" exit 1 Created attachment 10081 [details]
Refactor all error on exit in script
This patch refactor so that all error message are redirected to stderror and exit the script. This also will send an system email per cron if such errors triggers.
OK, merge Patch is merged and built in univention-samba4 ver. 8.0.0-25A~4.4.0.201906241403. 88e30756 :Bug #49399: redirect error message from tdbbackup to stderr so cron will email error 3c13a13c :Bug #49399: refactoring all exits on error 39b05bc2 :Bug #49399: Version bump dd780e41 :Bug #49399: yaml OK |