]> andersk Git - moira.git/blobdiff - server/startmoira.c
remove startdcm with make clean
[moira.git] / server / startmoira.c
index 9f6a9e698cece4b7eecebc32874b16310ff03632..513674ff3410a0453795111fdc7c5c1b7a2bc588 100644 (file)
@@ -4,21 +4,21 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  *
  *     This program starts the sms server in a "clean" environment.
  *     and then waits for it to exit.
  * 
- *     $Log$
- *     Revision 1.1  1987-06-01 03:35:33  wesommer
- *     Initial revision
- *
  */
 
 #ifndef lint
 static char *rcsid_sms_starter_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include <stdio.h>
+#include <strings.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/wait.h>
@@ -27,7 +27,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/bin/smsd"
 
 int rdpipe[2];
 char *sigdescr[] = {
@@ -169,9 +169,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.031032 seconds and 4 git commands to generate.