components/lighttpd/Solaris/http-lighttpd14.xml
branchs11-update
changeset 2925 d64f6e80d9b1
parent 331 5001b63ddc8a
--- a/components/lighttpd/Solaris/http-lighttpd14.xml	Thu Jan 30 15:02:39 2014 -0800
+++ b/components/lighttpd/Solaris/http-lighttpd14.xml	Thu Jan 09 03:35:51 2014 -0800
@@ -22,7 +22,7 @@
 
 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
 <!--
-    Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+    Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
 -->
 
 <service_bundle type='manifest' name='SUNWlighttpd14r:lighttpd'>
@@ -76,15 +76,19 @@
        <exec_method
            type='method'
            name='start'
-           exec='/lib/svc/method/http-lighttpd14 start'
+           exec='/usr/lighttpd/1.4/sbin/lighttpd -f /etc/lighttpd/1.4/lighttpd.conf'
            timeout_seconds='60'>
-           <method_context />
+           <method_context>
+               <method_credential
+                   user='webservd' group='webservd'
+                   privileges='basic,net_privaddr'/>
+           </method_context>
       </exec_method>
 
       <exec_method
            type='method'
            name='stop'
-           exec='/lib/svc/method/http-lighttpd14 stop'
+           exec=':kill'
            timeout_seconds='60'>
            <method_context />
       </exec_method>
@@ -92,9 +96,13 @@
        <exec_method
            type='method'
            name='refresh'
-           exec='/lib/svc/method/http-lighttpd14 refresh'
+           exec=':kill -HUP'
            timeout_seconds='60'>
-           <method_context />
+           <method_context>
+               <method_credential
+                   user='webservd' group='webservd'
+                   privileges='basic,net_privaddr'/>
+           </method_context>
       </exec_method>
 
       <property_group name='httpd' type='application'>