Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 14, 2016
0 parents commit 2f0e03f
Show file tree
Hide file tree
Showing 16 changed files with 644 additions and 0 deletions.
Binary file added 4366.pdf
Binary file not shown.
Binary file added 4367.pdf
Binary file not shown.
Binary file added 9781430218913.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2009 Harry Foxwell and Hung Tran

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


22 changes: 22 additions & 0 deletions ProOpenSolarisFiles/Chapter01/cddl_header.txt
@@ -0,0 +1,22 @@
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/

25 changes: 25 additions & 0 deletions ProOpenSolarisFiles/Chapter05/mysql.xml
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="MySQL">
<service name="application/database/mysql" type="service" version="1">
<single_instance/>
<dependency name="filesystem" grouping="require_all"
restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<exec_method type="method" name="start" exec="/etc/sfw/mysql/mysql.server start"
timeout_seconds="120"/>
<exec_method type="method" name="stop" exec="/etc/sfw/mysql/mysql.server stop"
timeout_seconds="120"/>
<instance name="default" enabled="false"/>
<stability value="Unstable"/>
<template>
<common_name>
<loctext xml:lang="C">MySQL RDBMS</loctext>
</common_name>
<documentation>
<manpage title="mysql" section="1" manpath="/usr/sfw/share/man"/>
</documentation>
</template>
</service>
</service_bundle>
68 changes: 68 additions & 0 deletions ProOpenSolarisFiles/Chapter08/subversion.xml
@@ -0,0 +1,68 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
SMF manifest for Subversion.
-->

<service_bundle type='manifest' name='subversion'>

<service
name='site/subversion'
type='service'
version='1'>

<create_default_instance enabled='false' />
<single_instance />

<dependency name='network'
grouping='require_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>

<dependency name='filesystem-local'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri
value='svc:/system/filesystem/local:default'/>
</dependency>

<dependency
name='repository'
grouping='require_all'
restart_on='restart'
type='path'>
<service_fmri
value='file://localhost/opt/svn/repo' />
</dependency>

<exec_method
type='method'
name='start'
exec='/usr/bin/svnserve -d -r /opt/svn/repo'
timeout_seconds='60' />

<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />

<stability value='Evolving' />

<template>
<common_name>
<loctext xml:lang='C'>
Subversion
</loctext>
</common_name>
<documentation>
<doc_link name='Subversion Book'
uri='http://svnbook.red-bean.com/' />
</documentation>
</template>
</service>

</service_bundle>
75 changes: 75 additions & 0 deletions ProOpenSolarisFiles/Chapter08/tomcat5.xml
@@ -0,0 +1,75 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Apress SMF manifest for tomcat5.
-->

<service_bundle type='manifest' name='tomcat5:apache'>

<service
name='site/http'
type='service'
version='1'>

<instance name='tomcat5' enabled='false'>

<dependency name='network'
grouping='require_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>

<dependency name='filesystem-local'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri
value='svc:/system/filesystem/local:default'/>
</dependency>

<exec_method
type='method'
name='start'
exec='/usr/apache/tomcat/bin/startup.sh'
timeout_seconds='60' >
<method_context>
<method_credential user='webservd'
privileges='basic,net_privaddr'/>
</method_context>
</exec_method>

<exec_method
type='method'
name='stop'
exec='/usr/apache/tomcat/bin/shutdown.sh'
timeout_seconds='60' >
<method_context>
<method_credential
user='webservd' />
</method_context>
</exec_method>

<property_group name='startd' type='framework'>
<propval name='ignore_error' type='astring'
value='core,signal' />
</property_group>

</instance>

<stability value='Evolving' />

<template>
<common_name>
<loctext xml:lang='C'>
Tomcat 5
</loctext>
</common_name>
<documentation>
<doc_link name='apache.org'
uri='http://apache.org' />
</documentation>
</template>
</service>

</service_bundle>
6 changes: 6 additions & 0 deletions ProOpenSolarisFiles/Chapter09/example1.d
@@ -0,0 +1,6 @@
#!/usr/sbin/dtraces
/* this is example1.d */
fbt:zfs:zfs_write:entry
{
trace(execname);
}
6 changes: 6 additions & 0 deletions ProOpenSolarisFiles/Chapter09/example2.d
@@ -0,0 +1,6 @@
#!/usr/sbin/dtrace -s
syscall::pollsys:entry
/ execname == "java" /
{
jstack(16);
}

0 comments on commit 2f0e03f

Please sign in to comment.