README revision 7c478bd95313f5f23a4c958a745db2134aa03244
14177N/A#
14177N/A# CDDL HEADER START
14177N/A#
14177N/A# The contents of this file are subject to the terms of the
14177N/A# Common Development and Distribution License, Version 1.0 only
14177N/A# (the "License"). You may not use this file except in compliance
14177N/A# with the License.
14177N/A#
14177N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14177N/A# or http://www.opensolaris.org/os/licensing.
14177N/A# See the License for the specific language governing permissions
14177N/A# and limitations under the License.
14177N/A#
14347N/A# When distributing Covered Code, include this CDDL HEADER in each
14347N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14347N/A# If applicable, add the following below this CDDL HEADER, with the
14347N/A# fields enclosed by brackets "[]" replaced with your own identifying
14347N/A# information: Portions Copyright [yyyy] [name of copyright owner]
14347N/A#
14177N/A# CDDL HEADER END
14347N/A#
14347N/A#
14347N/A# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
14347N/A# Use is subject to license terms.
14177N/A#
14347N/A#ident "%Z%%M% %I% %E% SMI"
14347N/A#
14177N/A
14177N/ALicensing
---------
This module is released under the Perl Artistic License.
Availability
------------
This module is only available for Solaris 9 onwards.
Description
-----------
This module provided access to the Solaris Project subsystem, which is part of
the Solaris resource management infrastructure.
For more information on Solaris Projects, see the project(4) manpage and the
following on-line documentation:
System Administration Guide: Resource Management and Network Services
Chapter 6 - Projects and Tasks
http://docs.sun.com/db/doc/816-7125
An example of how this module might be used is to put the Apache httpd under
resource management control, so that the total resources used by Apache can be
limited using Solaris resource management. Assuming mod_perl is installed for
Apache, and a project with the appropriate limits has been established
(see documentation references above), the following code in the Apache Perl
startup file will place Apache under RM control:
use Sun::Solaris::Project qw(:ALL);
my $user = getpwuid(Apache->server->uid());
setproject(getdefaultproj($user), $user, 0) == 0 || die($!);
Installation
------------
1. Uncompress and untar the archive
2. cd to the module directory
3. perl Makefile.PL; make install
If you are using gcc and wish to build this module against the perl shipped as
part of Solaris, see the Solaris-PerlGcc module, also available from CPAN.