[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-cvs
Subject:    [IPCop-cvs] ipcop/src/misc-progs settimenow.c,1.2,1.3
From:       Achim Weber <dotzball () users ! sourceforge ! net>
Date:       2007-03-22 11:15:01
Message-ID: E1HULG3-0004VW-AM () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ipcop/ipcop/src/misc-progs
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv16955/src/misc-progs

Modified Files:
	settimenow.c 
Log Message:
Forward from 1.4:
Move all periodically written timeserver files to /var/log/time.



Index: settimenow.c
===================================================================
RCS file: /cvsroot/ipcop/ipcop/src/misc-progs/settimenow.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** settimenow.c	14 Oct 2006 12:28:11 -0000	1.2
--- settimenow.c	22 Mar 2007 11:14:59 -0000	1.3
***************
*** 41,45 ****
  	if (argc==1)
  	{
! 		safe_system("/bin/touch " CONFIG_ROOT "/time/settimenow");
  		safe_system("/usr/local/bin/timecheck");
  		return 0;
--- 41,45 ----
  	if (argc==1)
  	{
! 		safe_system("/bin/touch /var/log/time/settimenow");
  		safe_system("/usr/local/bin/timecheck");
  		return 0;
***************
*** 47,56 ****
  	else if (argc==2 && strcmp(argv[1], PARA_CLEAN)==0)
  	{
! 		safe_system("/bin/rm -f /var/log/time_counter");
  		return 0;
  	}
  	else if (argc==2 && strcmp(argv[1], PARA_INIT)==0)
  	{
! 		safe_system("/bin/cp " CONFIG_ROOT "/time/counter.conf /var/log/time_counter");
  		return 0;
  	}
--- 47,57 ----
  	else if (argc==2 && strcmp(argv[1], PARA_CLEAN)==0)
  	{
! 		safe_system("/bin/rm -f /var/log/time/settimenow");
! 		safe_system("/bin/rm -f /var/log/time/counter");
  		return 0;
  	}
  	else if (argc==2 && strcmp(argv[1], PARA_INIT)==0)
  	{
! 		safe_system("/bin/cp " CONFIG_ROOT "/time/counter.conf /var/log/time/counter");
  		return 0;
  	}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
IPCop-cvs mailing list
IPCop-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic