5329N/A# The contents of this file are subject to the terms of the
5329N/A# Common Development and Distribution License, Version 1.0 only
5329N/A# (the "License"). You may not use this file except in compliance
5329N/A# See the License for the specific language governing permissions
5329N/A# and limitations under the License.
5329N/A# When distributing Covered Code, include this CDDL HEADER in each
5329N/A# If applicable, add the following below this CDDL HEADER, with the
5329N/A# fields enclosed by brackets "[]" replaced with your own identifying
5329N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5426N/A# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
5329N/A# Use is subject to license terms.
5329N/AThis module is released under the Perl Artistic License.
5329N/AThis module is only available for Solaris 9 onwards.
5329N/AThis module provided access to the Solaris Project subsystem, which is part of
5329N/Athe Solaris resource management infrastructure.
5329N/AFor more information on Solaris Projects, see the project(4) manpage and the
5329N/Afollowing on-line documentation:
5329N/ASystem Administration Guide: Resource Management and Network Services
5329N/AChapter 6 - Projects and Tasks
5329N/AAn example of how this module might be used is to put the Apache httpd under
5329N/Aresource management control, so that the total resources used by Apache can be
5329N/Alimited using Solaris resource management. Assuming mod_perl is installed for
5329N/AApache, and a project with the appropriate limits has been established
5713N/A(see documentation references above), the following code in the Apache Perl
5329N/Astartup file will place Apache under RM control:
5329N/Ause Sun::Solaris::Project qw(:ALL);
5329N/Amy $user = getpwuid(Apache->server->uid());
5329N/Asetproject(getdefaultproj($user), $user, 0) == 0 || die($!);
5329N/A1. Uncompress and untar the archive
5329N/A2. cd to the module directory
5329N/AIf you are using gcc and wish to build this module against the perl shipped as
5329N/Apart of Solaris, see the Solaris-PerlGcc module, also available from CPAN.