[csw-devel] SF.net SVN: gar:[5141] csw/mgar/pkg/cswclassutils/trunk
bonivart at users.sourceforge.net
bonivart at users.sourceforge.net
Wed Jun 3 13:42:17 CEST 2009
Revision: 5141
http://gar.svn.sourceforge.net/gar/?rev=5141&view=rev
Author: bonivart
Date: 2009-06-03 11:42:17 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
cswclassutils: add AUTOENABLE to non-SMF services (#3635)
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-06-03 10:42:34 UTC (rev 5140)
+++ csw/mgar/pkg/cswclassutils/trunk/Makefile 2009-06-03 11:42:17 UTC (rev 5141)
@@ -1,5 +1,5 @@
GARNAME = cswclassutils
-GARVERSION = 1.15
+GARVERSION = 1.16
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-06-03 10:42:34 UTC (rev 5140)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswinitsmf 2009-06-03 11:42:17 UTC (rev 5141)
@@ -292,10 +292,16 @@
done
# Start service
- echo Starting $service ...
- # fix permissions temporarily since 644 is used until verification
- /usr/bin/chmod 744 /etc/init.d/$service
- /etc/init.d/$service start > /dev/null 2>&1
+ AUTOENABLE="yes"
+ if [ "`grep '^#AUTOENABLE' $dest`" ]; then
+ AUTOENABLE=`grep '^#AUTOENABLE' $dest | awk '{print $2}' | /usr/xpg4/bin/tr -s '[:upper:]' '[:lower:]'`
+ fi
+ if [ "$AUTOENABLE" != "no" -a "$AUTOENABLE" != "false" ]; then
+ echo Starting $service ...
+ # fix permissions temporarily since 644 is used until verification
+ /usr/bin/chmod 744 /etc/init.d/$service
+ /etc/init.d/$service start > /dev/null 2>&1
+ fi
fi
fi
done
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