If you guys can build a pkg for zenoss on Solaris you would instantly
become my hero!
-EAD
On May 14, 2007, at 4:52 PM, Christopher Blunck wrote:
You shouldn't have to restart Zenoss because the mysql-python
package has auto-reconnect turned on by default on Connection objects.
Of course "shouldn't" and "don't" are two different things,
especially when you're talking about Solaris. :)
I've restarted MySQL under Linux and Zenoss has been fine.
I assume the same is true for Solaris but that's a pretty big
assumption.
PS -
I did a SunStudio 11 64 bit build under Solaris. The notes are here:
http://dev.zenoss.org/trac/browser/trunk/inst/docs/BUILD_Source-
Solaris10.txt
I'm very interested in your progress, and one day we would very
much like to distribute an official Solaris "package" (whatever
that means these days). Do you have some ideas on how we can more
closely work together and avoid duplication of effort? I'm on AIM
and if you're willing to chat off-list we can do so that way...
-c
On May 14, 2007, at 3:39 PM, jmaltais wrote:
Here's the manifest for Solaris 10 SMF. Zenoss won't start until
MySQL is ready.
Question is: do we need to restart Zenoss when MySQL is restarted?
Code:
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/
service_bundle.dtd.1">
<service_bundle type='manifest' name='zenoss:zenoss'>
<service name='application/zenoss' type='service' version='1'>
<create_default_instance enabled='false' />
<single_instance />
<!-- Wait for mysql to be running. -->
<dependency name='mysql' grouping='require_all' restart_on='none'
type='service'>
<service_fmri value='svc:/application/mysql:default'/>
</dependency>
<exec_method type='method' name='start' exec='/usr/local/zenoss/
bin/zenoss start' timeout_seconds='180'>
<method_context>
<method_credential user='zenoss' group='zenoss' />
<method_environment>
<envvar name='ZENHOME' value='/usr/local/zenoss' />
<envvar name='PYTHONPATH' value='/usr/local/zenoss/lib/
python' />
<envvar name='LD_LIBRARY_PATH' value='/usr/local/mysql/
lib/mysql' />
<envvar name='PATH' value='/usr/local/zenoss/bin:/usr/
local/bin:/usr/local/mysql/bin:/usr/bin:/usr/ucb:/sbin:/usr/sbin:/
usr/sfw/bin' />
</method_environment>
</method_context>
</exec_method>
<exec_method type='method' name='stop' exec='/usr/local/zenoss/bin/
zenoss stop' timeout_seconds='180'>
<method_context>
<method_credential user='zenoss' group='zenoss' />
<method_environment>
<envvar name='ZENHOME' value='/usr/local/zenoss' />
<envvar name='PYTHONPATH' value='/usr/local/zenoss/lib/
python' />
<envvar name='LD_LIBRARY_PATH' value='/usr/local/mysql/
lib/mysql' />
<envvar name='PATH' value='/usr/local/zenoss/bin:/usr/
local/bin:/usr/local/mysql/bin:/usr/bin:/usr/ucb:/sbin:/usr/sbin:/
usr/sfw/bin' />
</method_environment>
</method_context>
</exec_method>
</service>
</service_bundle>
------------------------
J.F. Maltais
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=6530#6530
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users