/[inetutils]/inetutils/syslogd/syslogd.c
ViewVC logotype

Diff of /inetutils/syslogd/syslogd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.63 by marcus, Tue Mar 5 15:04:07 2002 UTC revision 1.64 by ams, Mon Apr 29 21:18:10 2002 UTC
# Line 1  Line 1 
1  /* syslogd - log system messages  /* syslogd - log system messages
2   *   *
3   * Copyright (c) 1983, 1988, 1993, 1994   * Copyright (c) 1983, 1988, 1993, 1994, 2002
4   *      The Regents of the University of California.  All rights reserved.   *      The Regents of the University of California.  All rights reserved.
5   *   *
6   * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
# Line 135  typedef struct utmp UTMP; Line 135  typedef struct utmp UTMP;
135  # include <syslog-int.h>  # include <syslog-int.h>
136  #endif  #endif
137    
 #include <version.h>  
   
138  const char *ConfFile = PATH_LOGCONF; /* Default Configuration file.  */  const char *ConfFile = PATH_LOGCONF; /* Default Configuration file.  */
139  const char *PidFile = PATH_LOGPID; /* Default path to tuck pid.  */  const char *PidFile = PATH_LOGPID; /* Default path to tuck pid.  */
140  char ctty[] = PATH_CONSOLE; /* Default console to send message info.  */  char ctty[] = PATH_CONSOLE; /* Default console to send message info.  */
# Line 331  usage (int err) Line 329  usage (int err)
329        --help         Display this help and exit\n\        --help         Display this help and exit\n\
330    -V, --version      Output version information and exit");    -V, --version      Output version information and exit");
331    
332        fprintf (stdout, "\nSubmit bug reports to %s.\n", inetutils_bugaddr);        fprintf (stdout, "\nSubmit bug reports to %s.\n", PACKAGE_BUGREPORT);
333      }      }
334    exit (err);    exit (err);
335  }  }
# Line 454  main (int argc, char *argv[]) Line 452  main (int argc, char *argv[])
452            /* Not reached.  */            /* Not reached.  */
453    
454          case 'V': /* Version.  */          case 'V': /* Version.  */
455            printf ("syslogd (%s) %s\n", inetutils_package, inetutils_version);            printf ("syslogd (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
456            exit (0);            exit (0);
457    
458          case '?':          case '?':
# Line 1773  init (int signo) Line 1771  init (int signo)
1771      }      }
1772    
1773    if (AcceptRemote)    if (AcceptRemote)
1774      logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" inetutils_package \      logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" PACKAGE_NAME \
1775              " " inetutils_version "): restart (remote reception)",              " " PACKAGE_VERSION "): restart (remote reception)",
1776              LocalHostName, ADDDATE);              LocalHostName, ADDDATE);
1777    else    else
1778      logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" inetutils_package \      logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" PACKAGE_NAME \
1779              " " inetutils_version "): restart", LocalHostName, ADDDATE);              " " PACKAGE_VERSION "): restart", LocalHostName, ADDDATE);
1780    dbg_printf ("syslogd: restarted\n");    dbg_printf ("syslogd: restarted\n");
1781  }  }
1782    

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26