The Samba-Bugzilla – Attachment 12933 Details for
Bug 12583
[PATCH] Add new daemon option "syslog tag"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add new daemon option "syslog tag"
syslog_tag.diff (text/plain), 2.57 KB, created by
Ben RUBSON
on 2017-02-15 09:26:56 UTC
(
hide
)
Description:
Add new daemon option "syslog tag"
Filename:
MIME Type:
Creator:
Ben RUBSON
Created:
2017-02-15 09:26:56 UTC
Size:
2.57 KB
patch
obsolete
>--- log.c.orig 2015-09-07 19:07:17.000000000 +0200 >+++ log.c 2017-02-14 19:35:28.000000000 +0100 >@@ -144,7 +144,7 @@ > #endif > > #ifdef LOG_DAEMON >- openlog("rsyncd", options, lp_syslog_facility(module_id)); >+ openlog(lp_syslog_tag(module_id), options, lp_syslog_facility(module_id)); > #else > openlog("rsyncd", options); > #endif >--- loadparm.c.orig 2015-08-08 21:47:03.000000000 +0200 >+++ loadparm.c 2017-02-14 17:38:34.000000000 +0100 >@@ -122,6 +122,7 @@ > char *lock_file; > char *log_file; > char *log_format; >+ char *syslog_tag; > char *name; > char *outgoing_chmod; > char *path; >@@ -198,6 +199,7 @@ > /* lock_file; */ DEFAULT_LOCK_FILE, > /* log_file; */ NULL, > /* log_format; */ "%o %h [%a] %m (%u) %f %l", >+ /* syslog_tag; */ "rsyncd", > /* name; */ NULL, > /* outgoing_chmod; */ NULL, > /* path; */ NULL, >@@ -340,6 +342,7 @@ > {"lock file", P_STRING, P_LOCAL, &Vars.l.lock_file, NULL,0}, > {"log file", P_STRING, P_LOCAL, &Vars.l.log_file, NULL,0}, > {"log format", P_STRING, P_LOCAL, &Vars.l.log_format, NULL,0}, >+ {"syslog tag", P_STRING, P_LOCAL, &Vars.l.syslog_tag, NULL,0}, > {"max connections", P_INTEGER,P_LOCAL, &Vars.l.max_connections, NULL,0}, > {"max verbosity", P_INTEGER,P_LOCAL, &Vars.l.max_verbosity, NULL,0}, > {"munge symlinks", P_BOOL, P_LOCAL, &Vars.l.munge_symlinks, NULL,0}, >@@ -467,6 +470,7 @@ > FN_LOCAL_STRING(lp_lock_file, lock_file) > FN_LOCAL_STRING(lp_log_file, log_file) > FN_LOCAL_STRING(lp_log_format, log_format) >+FN_LOCAL_STRING(lp_syslog_tag, syslog_tag) > FN_LOCAL_STRING(lp_name, name) > FN_LOCAL_STRING(lp_outgoing_chmod, outgoing_chmod) > FN_LOCAL_STRING(lp_path, path) >--- rsyncd.conf.5.orig 2015-12-21 21:20:56.000000000 +0100 >+++ rsyncd.conf.5 2017-02-14 19:29:25.000000000 +0100 >@@ -354,6 +354,11 @@ > non\-empty string (either set in the per\-modules settings, or inherited > from the global settings). > .IP >+.IP "\fBsyslog tag\fP" >+This parameter allows you to >+specify the syslog tag to use when logging messages from the >+rsync daemon. The default is rsyncd. >+.IP > .IP "\fBmax verbosity\fP" > This parameter allows you to control > the maximum amount of verbose information that you\(cq\&ll allow the daemon to >--- proto.h.orig 2017-02-13 22:02:52.000000000 +0100 >+++ proto.h 2017-02-14 19:34:04.000000000 +0100 >@@ -204,6 +204,7 @@ > char *lp_lock_file(int module_id); > char *lp_log_file(int module_id); > char *lp_log_format(int module_id); >+char *lp_syslog_tag(int module_id); > char *lp_name(int module_id); > char *lp_outgoing_chmod(int module_id); > char *lp_path(int module_id);
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 Raw
Actions:
View
Attachments on
bug 12583
: 12933