Bug 37604

Summary: start univention-cli-server in foreground
Product: UCS Reporter: Florian Best <best>
Component: UDM (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: gohmann, hahn
Version: UCS 4.0   
Target Milestone: UCS 4.x   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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: Bug group (optional):
Max CVSS v3 score:
Attachments: patch

Description Florian Best univentionstaff 2015-01-23 13:23:52 CET
It would be nice if one could start univention-cli-server in foreground using some parameters for debug level and logfile:

univention-cli-server -n -d4 -L /dev/stderr
Comment 1 Florian Best univentionstaff 2015-01-23 14:21:37 CET
Created attachment 6629 [details]
patch

usage: univention-cli-server [-h] [-n] [-L LOGFILE] [-d DEBUG_LEVEL]
                             [-t TIMEOUT]

optional arguments:
  -h, --help      show this help message and exit
  -n              Run in foreground without daemonizing
  -L LOGFILE      logfile: /var/log/univention/directory-manager-cmd.log
  -d DEBUG_LEVEL  debug level: 1
  -t TIMEOUT      timeout: 300
Comment 2 Philipp Hahn univentionstaff 2015-01-26 08:21:53 CET
Also see Bug #33224, which contains a patch to make the cli-server callable from the command-line, which I used myself multiple time for debugging UDM modules the past.
Comment 3 Florian Best univentionstaff 2016-05-02 13:16:02 CEST
curl https://forge.univention.org/bugzilla/attachment.cgi?id=6629 | patch -d /usr/share/univention-directory-manager-tools/
Comment 4 Florian Best univentionstaff 2016-06-29 16:43:21 CEST
The patch was used as base and verified by Bug #40422.

*** This bug has been marked as a duplicate of bug 40422 ***