Univention Bugzilla – Attachment 10606 Details for
Bug 52716
Allow notifier to log to stdout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch (git:fbest/52716-notifier-log)
52716.patch (text/plain), 2.02 KB, created by
Florian Best
on 2021-01-28 13:42:27 CET
(
hide
)
Description:
patch (git:fbest/52716-notifier-log)
Filename:
MIME Type:
Creator:
Florian Best
Created:
2021-01-28 13:42:27 CET
Size:
2.02 KB
patch
obsolete
>commit 6df30051b0971553187f0ac3981ac4ad5be18728 >Author: Florian Best <best@univention.de> >Date: Thu Jan 28 13:41:57 2021 +0100 > > Bug #52716: allow to specifiy logfile via univention-directory-notifier -l stderr > >diff --git management/univention-directory-notifier/src/univention-directory-notifier.c management/univention-directory-notifier/src/univention-directory-notifier.c >index 2457ce1d1e..47d4432527 100644 >--- management/univention-directory-notifier/src/univention-directory-notifier.c >+++ management/univention-directory-notifier/src/univention-directory-notifier.c >@@ -66,6 +66,7 @@ void usage(void) > fprintf(stderr, "Usage: univention-directory-notifier [options]\n"); > fprintf(stderr, "Options:\n"); > fprintf(stderr, " -F run in foreground (intended for process supervision)\n"); >+ fprintf(stderr, " -l path to logfile (or \"stderr\")\n"); > fprintf(stderr, " -o DEPRECATED\n"); > fprintf(stderr, " -r DEPRECATED\n"); > fprintf(stderr, " -s DEPRECATED\n"); >@@ -154,6 +155,7 @@ int main(int argc, char* argv[]) > > int foreground = 0; > int debug = 0; >+ char *notifier_log_file = "/var/log/univention/notifier.log"; > > > SCHEMA_ID=0; >@@ -162,7 +164,7 @@ int main(int argc, char* argv[]) > int c; > char *end; > >- c = getopt(argc, argv, "Fosrd:S:C:L:T:v:"); >+ c = getopt(argc, argv, "Fosrd:l:S:C:L:T:v:"); > if (c < 0) > break; > >@@ -188,6 +190,9 @@ int main(int argc, char* argv[]) > case 'T': > notifier_lock_time=atoll(optarg); > break; >+ case 'l': >+ notifier_log_file = optarg; >+ break; > case 'v': > network_procotol_version = strtoll(optarg, &end, 10); > if (!*optarg || *end || network_procotol_version < PROTOCOL_1 || network_procotol_version >= PROTOCOL_LAST) >@@ -203,7 +208,7 @@ int main(int argc, char* argv[]) > daemon(1,1); > } > >- univention_debug_init("/var/log/univention/notifier.log",1,1); >+ univention_debug_init(notifier_log_file, 1, 1); > univention_debug_set_level(UV_DEBUG_TRANSFILE, debug); > > if ( creating_pidfile("/var/run/udsnotifier.pid") != 0 )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52716
: 10606