Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Oct 14, 2016
0 parents
commit 2f0e03f
Showing
16 changed files
with
644 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/sbin/dtrace –s | ||
/* this is example1.d */ | ||
fbt:zfs:zfs_write:entry | ||
{ | ||
trace(execname); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/sbin/dtrace -s | ||
syscall::pollsys:entry | ||
/ execname == "java" / | ||
{ | ||
jstack(16); | ||
} |
Oops, something went wrong.