log daemon startup
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 1 Mar 1993 01:46:39 +0000 (17:46 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 1 Mar 1993 01:46:39 +0000 (17:46 -0800)
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.28

usr/src/usr.sbin/sendmail/src/main.c

index cf2dd1e..2aea6fd 100644 (file)
@@ -13,7 +13,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     6.27 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     6.28 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -781,6 +781,8 @@ main(argc, argv, envp)
 
        if (OpMode == MD_DAEMON || QueueIntvl != 0)
        {
 
        if (OpMode == MD_DAEMON || QueueIntvl != 0)
        {
+               char dtype[200];
+
                if (!tTd(0, 1))
                {
                        FILE *pidf;
                if (!tTd(0, 1))
                {
                        FILE *pidf;
@@ -806,6 +808,21 @@ main(argc, argv, envp)
                        disconnect(TRUE);
                }
 
                        disconnect(TRUE);
                }
 
+               dtype[0] = '\0';
+               if (OpMode == MD_DAEMON)
+                       strcat(dtype, "+SMTP");
+               if (QueueIntvl != 0)
+               {
+                       extern char *pintvl();
+
+                       strcat(dtype, "+queueing@");
+                       strcat(dtype, pintvl(QueueIntvl, TRUE));
+               }
+               if (tTd(0, 1))
+                       strcat(dtype, "+debugging");
+
+               syslog(LOG_INFO, "starting %s daemon", dtype);
+
 # ifdef QUEUE
                if (queuemode)
                {
 # ifdef QUEUE
                if (queuemode)
                {