search for: log_daemon

Displaying 20 results from an estimated 45 matches for "log_daemon".

2001 Dec 10
10
hang on exit bug under Linux
>From what I understand, the problem is due to people's disagreement about what the "correct" behavior should be. I'm pretty sure that the following is the correct behavior from running rsh and ssh often (both fsecure and openssh). Lets say you have a stupid script that does while 1 do sleep 1 done Called foreverSleep on your remote host: rsh remotehost
2014 Jul 31
0
[PATCH 1/3] __progname is provided by libc
...char **argv) /* basename() is way too much of a pain from a portability standpoint */ p = strrchr(argv[0], '/'); - __progname = (p && p[1]) ? p + 1 : argv[0]; + tftpd_progname = (p && p[1]) ? p + 1 : argv[0]; - openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); + openlog(tftpd_progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); srand(time(NULL) ^ getpid()); @@ -938,14 +938,14 @@ int main(int argc, char **argv) syslog daemon gets restarted by the time we get here. */ if (secure && standalone) { closelog(); - open...
2010 Apr 19
1
Patch for the bestfortress driver 0.02
...upssend ("f\r"); + while (ser_get_char(upsfd, &ch, 0, UPSDELAY) > 0 && ch != '\n'); // response starts with \r\n } } while (temp[2] == 0); - /*syslog (LOG_DAEMON | LOG_NOTICE,"ups: got '%s'\n", p);*/ + /* syslog (LOG_DAEMON | LOG_NOTICE,"ups: got %d chars '%s'\n", len, temp + 2); */ + + upsdebugx(5, "data from UPS: len=%d '%s'", len, &temp[2]); /* status ex...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...below! */ typedef struct { @@ -179,6 +180,7 @@ static int iNumServices = 0; static int iServiceIndex = 0; static BOOL bInGlobalSection = True; +static BOOL bsDefaultInitialized = False; #define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct)) @@ -297,6 +299,28 @@ #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif + if (!bsDefaultInitialized) { + bsDefaultInitialized = True; +#define maybe_init(x) if (sDefault.x != NULL) sDefault.x = strdup(sDefault.x) + maybe_init(name); + maybe_init(path); + maybe_init(comment); + maybe_init(lock_file); + m...
2003 Oct 12
7
rsync.h always including syslog.h even when not used.
Hello, rsync.h is always including the syslog.h file, even though it is only used when the LOG_DAEMON macro is defined. Could someone change it to be as follows: #ifdef LOG_DAEMON #include <syslog.h> #endif OpenVMS currently does not have a syslog facility, so it does not have a syslog.h. Thank you, -John wb8tyw@qsl.net Personal Opinion Only
2014 Jul 31
5
[PATCH 0/3] tftp-hpa patches from Debian
From: Ron <ron at debian.org> Hi, I've just taken over maintaining the packages for this in Debian, and we've been carrying a couple of patches for a while now that really should have been forwarded since they're clearly not distro specific. I added a third one to that yesterday to fix another autoconf build 'race' seen when doing parallel builds. Cheers, Ron
2011 Mar 19
2
httpd cannot serve web page on port 2812 (for Monit)
...the web page on my box The service start and stops fine (e.g. "/etc/init.d/monit start"), and I have it set to listen to port 2812 in the "/etc/monit.conf file" (so far, kept the default) e.g. in "/etc/monit.d/monitrc" file set daemon 60 set logfile syslog facility log_daemon set mailserver localhost set mail-format { from: monit at server1.example.com } set alert me at mydomain.com set httpd port 2812 check process sshd with pidfile /var/run/sshd.pid start program "/etc/init.d/sshd start" stop program "/etc/init.d/sshd stop" if failed port...
2016 Jan 09
1
Logging levels
...evel = 1 syslog = 6 syslog only = yes Also, I built Samba with --with-syslog-facility=LOG_LOCAL7. I'm having trouble replicating the same configuration with v4.3.3. The syslog facility configure option was removed, so I'm not sure how to specify the facility. It uses LOG_DAEMON. Is there a way to specify the syslog facility? My configuration now is: log level = 1 logging = syslog at 1 With the old configuration, my log mostly contained connect/disconnect lines, such as this: Jan 9 00:10:47 chernobyl smbd[18850]: [ID 702911 local7.warning] [2016/0...
2003 Feb 12
2
rsync & ldap authentication
...G,P_LOCAL,&sDefault.ldap_auth_users_attribute, NULL,0}, +#ifdef WITH_MANGLE_USER + {"mangle user", P_STRING, P_LOCAL, &sDefault.mangle_user, NULL, 0}, +#endif {NULL, P_BOOL, P_NONE, NULL, NULL, 0} }; @@ -292,6 +330,9 @@ #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif +#ifdef WITH_LDAP + Globals.ldap_port = LDAP_PORT; +#endif } /*************************************************************************** @@ -358,6 +399,21 @@ FN_LOCAL_STRING(lp_dont_compress, dont_compress) FN_LOCAL_INTEGER(lp_timeout, timeout)...
2003 May 03
0
Storing rsync secrets in LDAP
...P_LOCAL,&sDefault.ldap_auth_users_attribute, +NULL,0}, +#ifdef WITH_MANGLE_USER + {"mangle user", P_STRING, P_LOCAL, &sDefault.mangle_user, NULL, 0}, +#endif {NULL, P_BOOL, P_NONE, NULL, NULL, 0} }; @@ -297,6 +335,9 @@ #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif +#ifdef WITH_LDAP + Globals.ldap_port = LDAP_PORT; +#endif } /*************************************************************************** @@ -363,6 +404,21 @@ FN_LOCAL_STRING(lp_dont_compress, dont_compress) FN_LOCAL_INTEGER(lp_timeo...
2003 Apr 15
0
Patch for stderr logging
...&Globals.pid_file, NULL, 0}, {"timeout", P_INTEGER, P_LOCAL, &sDefault.timeout, NULL, 0}, @@ -305,6 +309,8 @@ static void init_globals(void) { memset(&Globals, 0, sizeof(Globals)); + Globals.log_timestamp = True; + Globals.log_pid = True; #ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif @@ -344,6 +350,8 @@ FN_GLOBAL_STRING(lp_motd_file, &Globals.motd_file) FN_GLOBAL_STRING(lp_log_file, &Globals.log_file) +FN_GLOBAL_BOOL(lp_log_timestamp, &Globals.log_timestamp) +FN_GLOBAL_BOOL(lp_log_pid, &Globals.log_pid) FN_GLO...
2007 Aug 26
1
monit not executing start/stop/restart mongrels
...the docs on monit I get this error when adding -v starting monit monit: Cannot connect to the monit daemon. Did you start it with http support? monit: Cannot connect to the monit daemon. Did you start it with http support? Am I missing something here? set daemon 120 set logfile syslog facility log_daemon set mailserver localhost set httpd port 28212 and #use address # only accept connection from localhost allow me # allow localhost to connect to the server and allow admin:password # require user ''admin'' with password ''monit'' check proc...
2018 May 11
2
vfs_full_audit and facility 'auth'...
On Fri, 11 May 2018 13:17:52 -0700 Jeremy Allison <jra at samba.org> wrote: > On Fri, May 11, 2018 at 09:56:47PM +0200, Timur I. Bakeyev via samba > wrote: > > > > > Fixing it in both ways is easy, but it would be nice to hear from > > the developers, why did they choose such a limited set of syslog > > facilities. > > I don't know. The limited
2020 Mar 19
0
smbclient(samba-4.10.4) cannot log data in log.smbclient while samba-3.6.23 can
...> ?+ ????? if (state.logtype == DEBUG_FILE) { > +#ifdef WITH_SYSLOG > + ???????????? //const char *p = strrchr_m( prog_name,'/' ); > + ?????????? const char *p = "/log.smbclient"; > +??????????????? if (p) > + ????????????????????? prog_name = p + 1; > +#ifdef LOG_DAEMON > + openlog( prog_name, LOG_PID, SYSLOG_FACILITY ); > +#else > + /* for old systems that have no facility codes. */ > + openlog( prog_name, LOG_PID ); > +#endif > +#endif > + } > > } > -- > > Thank you, > Amit Kumar > > <https://www.redhat.com/en/ope...
2018 May 11
3
vfs_full_audit and facility 'auth'...
...e, together with DAEMON, that make sense there. From other side, for completeness it may be feasible to add full set of: static const CODE facilitynames[] = { { "auth", LOG_AUTH, }, { "cron", LOG_CRON, }, { "daemon", LOG_DAEMON, }, { "ftp", LOG_FTP, }, { "kern", LOG_KERN, }, { "lpr", LOG_LPR, }, { "mail", LOG_MAIL, }, { "news", LOG_NEWS, }, { "ntp",...
2004 Jan 13
1
tftpd-hpa suggestions
Hello, Peter and others! there are some issues regarding the tftp-hpa server: 1. Running as Windows service seems to require that the application does not detach (otherwise "net start" says smth. like "could not start, the service didn't report any errors"). The attached patch adds the option "-n", which can be used to have tftpd run in foreground.
2011 Nov 28
0
RFC: [PATCH] Add TCP congestion control and Diffserv options
.../ NULL, /* charset; */ NULL, /* comment; */ NULL, + /* congestion_alg; */ NULL, /* dont_compress; */ DEFAULT_DONT_COMPRESS, /* exclude; */ NULL, /* exclude_from; */ NULL, @@ -212,6 +215,7 @@ static const all_vars Defaults = { /* max_verbosity; */ 1, /* syslog_facility; */ LOG_DAEMON, /* timeout; */ 0, + /* diffserv; */ 8, /* fake_super; */ False, /* forward_lookup; */ True, @@ -322,6 +326,8 @@ static struct parm_struct parm_table[] = {"auth users", P_STRING, P_LOCAL, &Vars.l.auth_users, NULL,0}, {"charset", P_S...
2003 Feb 20
0
Netbios name service forwarding.
...uct sockaddr_in from; fd_set rfds; int tid; int bcast; int dmport; if (argc < 3) { fprintf (stderr, "Usage:\n"); fprintf (stderr, "%s nmbdport interface [interface] [interface] ...\n"); exit (1); } openlog ("nbnsfw", LOG_CONS, LOG_DAEMON); daemon (0, 0); setsid (); argc--; argv++; dmport = atoi (*(argv++)); argc--; while (argc--) { open_if (*(argv++), NETBIOSPORT, dmport); } syslog (LOG_ERR, "Local nmbd port is %d", dmport); for (;;) { FD_ZERO (&rfds); for (i = i...
2017 Feb 11
2
[RFC][cifs-utils PATCH] cifs.upcall: allow scraping of KRB5CCNAME out of initiating task's /proc/<pid>/environ file
...char hostbuf[NI_MAXHOST], *host; struct decoded_args arg; const char *oid; uid_t uid; char *keytab_name = NULL; + char *env_cachename = NULL; krb5_ccache ccache = NULL; hostbuf[0] = '\0'; @@ -699,11 +824,15 @@ int main(const int argc, char *const argv[]) openlog(prog, 0, LOG_DAEMON); - while ((c = getopt_long(argc, argv, "ck:K:ltv", long_options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "cek:K:ltv", long_options, NULL)) != -1) { switch (c) { case 'c': /* legacy option -- skip it */ break; + case 'e': + /* do...
2020 Aug 18
0
[PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...SYSLOG_H + +#include <config.h> + +#ifdef HAVE_SYSLOG_H + +#include_next <syslog.h> + +#else + +#include <stdarg.h> + +/* Since the replacement function ignores the priority field, we only + * need to define these to any integer. + */ +#define LOG_PID 0 +#define LOG_ERR 0 +#define LOG_DAEMON 0 + +extern void openlog (const char *ident, int option, int facility); +extern void syslog (int pri, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); +extern void vsyslog (int pri, const char *fmt, va_list args) + __attribute__ ((format (printf, 2, 0))); + +#endif /* !HAVE_SYSLOG...