7173189 application/cups/scheduler:default start fails to maintenance, Start method died on Killed
authorPetr Cvachoucek <petr.cvachoucek@oracle.com>
Tue, 05 Jun 2012 10:38:55 -0700
changeset 853 72b657a4e294
parent 852 0a7f3f0c7b6f
child 854 7b5d0060108c
7173189 application/cups/scheduler:default start fails to maintenance, Start method died on Killed
components/cups/patches/17-smf-start-method.patch
components/gutenprint/gutenprint.startup
--- a/components/cups/patches/17-smf-start-method.patch	Tue Jun 05 13:13:11 2012 +0530
+++ b/components/cups/patches/17-smf-start-method.patch	Tue Jun 05 10:38:55 2012 -0700
@@ -1,14 +1,16 @@
---- init/cups.xml.in.orig	Fri Apr 13 05:21:47 2012
-+++ init/cups.xml.in	Fri Apr 13 05:22:51 2012
-@@ -71,7 +71,7 @@
+--- init/cups.xml.in.orig	2012-06-04 00:33:19.967159134 -0700
++++ init/cups.xml.in	2012-06-04 00:34:58.000000000 -0700
+@@ -71,8 +71,8 @@
          <exec_method
              type='method'
              name='start'
 -            exec='@sbindir@/cupsd'
+-            timeout_seconds='60' >
 +            exec='/lib/svc/method/svc-cupsd'
-             timeout_seconds='60' >
++            timeout_seconds='300' >
              <method_context>
                  <method_credential user='root' group='@CUPS_GROUP@' />
+             </method_context>
 @@ -87,6 +87,8 @@
                  value='solaris.smf.manage.cups' />
          </property_group>
--- a/components/gutenprint/gutenprint.startup	Tue Jun 05 13:13:11 2012 +0530
+++ b/components/gutenprint/gutenprint.startup	Tue Jun 05 10:38:55 2012 -0700
@@ -20,10 +20,13 @@
 	exit 1
 fi
 
+# package name
+PKG="pkg:/print/filter/gutenprint"
+
 # determine the package version
-VER=`pkg search -Hlo pkg.fmri "$0" | cut -d @ -f 2`
+VER=`pkg contents -H -a name=pkg.fmri -o value $PKG | cut -d @ -f 2`
 if [ -z "$VER" ] ; then
-	echo "$0: Failed to read package version."
+	echo "$0: Failed to read $PKG package version."
 	exit 1
 fi