[csw-devel] SF.net SVN: gar:[20632] csw/mgar/pkg/ntp/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Sun Apr 7 11:32:36 CEST 2013


Revision: 20632
          http://gar.svn.sourceforge.net/gar/?rev=20632&view=rev
Author:   bonivart
Date:     2013-04-07 09:32:35 +0000 (Sun, 07 Apr 2013)
Log Message:
-----------
ntp/trunk: add missing conf file, fix start script

Modified Paths:
--------------
    csw/mgar/pkg/ntp/trunk/Makefile
    csw/mgar/pkg/ntp/trunk/files/cswntp

Modified: csw/mgar/pkg/ntp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ntp/trunk/Makefile	2013-04-07 09:29:16 UTC (rev 20631)
+++ csw/mgar/pkg/ntp/trunk/Makefile	2013-04-07 09:32:35 UTC (rev 20632)
@@ -42,5 +42,6 @@
 	ginstall -m 755 $(FILEDIR)/cswntp $(DESTDIR)/etc/opt/csw/init.d/
 	ginstall -d $(DESTDIR)/etc/opt/csw/pkg/CSW$(NAME)
 	ginstall -m 755 $(FILEDIR)/ntp $(DESTDIR)/etc/opt/csw/pkg/CSW$(NAME)/
+	ginstall -m 755 $(FILEDIR)/ntp.conf $(DESTDIR)/etc/opt/csw/
 	ginstall -d $(DESTDIR)/var/opt/csw/$(NAME)
 	touch $(DESTDIR)/var/opt/csw/$(NAME)/ntp.drift

Modified: csw/mgar/pkg/ntp/trunk/files/cswntp
===================================================================
--- csw/mgar/pkg/ntp/trunk/files/cswntp	2013-04-07 09:29:16 UTC (rev 20631)
+++ csw/mgar/pkg/ntp/trunk/files/cswntp	2013-04-07 09:32:35 UTC (rev 20632)
@@ -10,9 +10,9 @@
 
 case "$1" in
   start)
-    if [ -f /opt/csw/bin/ntp -a -f /etc/opt/csw/ntp.conf ]; then
+    if [ -f /opt/csw/bin/ntpd -a -f /etc/opt/csw/ntp.conf ]; then
       echo "Starting ntp."
-      /opt/csw/bin/ntp $OPTIONS
+      /opt/csw/bin/ntpd $OPTIONS
     fi
     ;;
   stop)
@@ -22,7 +22,7 @@
         ZONE="-z global"
       fi
     fi
-    pkill $ZONE -x ntp
+    pkill $ZONE -x ntpd
     ;;
   reload|refresh)
     echo "Reloading ntp."
@@ -31,7 +31,7 @@
         ZONE="-z global"
       fi
     fi
-    pkill -HUP $ZONE -x ntp
+    pkill -HUP $ZONE -x ntpd
     ;;
   *)
     echo "Usage: $0 { start | stop | reload | refresh }"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list