]> andersk Git - moira.git/commitdiff
Changed logging, location of daemon to run.
authorwesommer <wesommer>
Tue, 2 Jun 1987 20:08:16 +0000 (20:08 +0000)
committerwesommer <wesommer>
Tue, 2 Jun 1987 20:08:16 +0000 (20:08 +0000)
server/startmoira.c

index 9f6a9e698cece4b7eecebc32874b16310ff03632..7ef74e7737ef70e49b59376a8fdccc84eb805e59 100644 (file)
@@ -9,9 +9,12 @@
  *     and then waits for it to exit.
  * 
  *     $Log$
- *     Revision 1.1  1987-06-01 03:35:33  wesommer
- *     Initial revision
+ *     Revision 1.2  1987-06-02 20:08:16  wesommer
+ *     Changed logging, location of daemon to run.
  *
+ * Revision 1.1  87/06/01  03:35:33  wesommer
+ * Initial revision
+ * 
  */
 
 #ifndef lint
@@ -19,6 +22,7 @@ static char *rcsid_sms_starter_c = "$Header$";
 #endif lint
 
 #include <stdio.h>
+#include <strings.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/wait.h>
@@ -27,7 +31,7 @@ static char *rcsid_sms_starter_c = "$Header$";
 
 #define SMS_LOG_FILE "/u1/sms/sms.log"
 
-#define SMS_PROG "/u1/sms/rpc/smsd"
+#define SMS_PROG "/u1/sms/server/smsd"
 
 int rdpipe[2];
 char *sigdescr[] = {
@@ -169,9 +173,10 @@ main(argc, argv)
                time(&foo);
                time_s = ctime(&foo)+4;
                time_s[strlen(time_s)-6]='\0';
-               fprintf(log, "%s %s", time_s, buf);
+               fprintf(log, "%s <%d> %s", time_s, pid, buf);
                fflush(log);
        } while (!done);
+       exit(0);
 }
 
 
This page took 0.051504 seconds and 5 git commands to generate.