Revision: 4017
          http://gar.svn.sourceforge.net/gar/?rev=4017&view=rev
Author:   bonivart
Date:     2009-03-28 17:53:57 +0000 (Sat, 28 Mar 2009)

Log Message:
-----------
cswclassutils: added support for refresh to cswinitsmf

Modified Paths:
--------------
    csw/mgar/pkg/cswclassutils/trunk/Makefile
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf

Modified: csw/mgar/pkg/cswclassutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/Makefile   2009-03-28 16:48:31 UTC (rev 
4016)
+++ csw/mgar/pkg/cswclassutils/trunk/Makefile   2009-03-28 17:53:57 UTC (rev 
4017)
@@ -1,5 +1,5 @@
 GARNAME = cswclassutils
-GARVERSION = 1.4
+GARVERSION = 1.5
 CATEGORIES = utils
 
 DESCRIPTION = CSW class action utilities

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf        
2009-03-28 16:48:31 UTC (rev 4016)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf        
2009-03-28 17:53:57 UTC (rev 4017)
@@ -6,6 +6,7 @@
 # Written by Peter Bonivart
 #
 # 2008-04-21 First release
+# 2009-03-28 Added support for refresh
 
 DEBUG=         # clear to disable debug, set to anything to enable
 SVCDIR=/var/opt/csw/svc
@@ -137,6 +138,19 @@
 EOF
     fi
 
+    # Add refresh option to manifest if service script supports it
+    if [ "`/usr/bin/egrep 'refresh.?\)' $SVCDIR/method/svc-$service`" ]; then
+      cat >> $SVCDIR/manifest/$FMRI/$service.xml << EOF
+  <exec_method
+    type='method'
+    name='refresh'
+    exec='$SVCDIR/method/svc-$service refresh'
+    timeout_seconds='-1'>
+  </exec_method>
+
+EOF
+    fi
+
     # Add last part of manifest
     cat >> $SVCDIR/manifest/$FMRI/$service.xml << EOF
 </service>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to