To determine if a user has the
net_privaddr
privilege, log in as that user and type the command
ppriv -l | grep net_privaddr
.
To run the
asadmin create-service
command, you must have
solaris.smf.*
authorization.
See the
useradd
and
usermod
man pages to find out how to set the authorizations. You must
also have write permission in the directory tree:
/var/svc/manifest/application/SUNWappserver
. Usually, the superuser has both these
permissions. Additionally, the Solaris 10 administration commands such as
svccfg
,
svcs
, and
auths
must be available in the PATH. For complete information on running this command, see
create-service
(1)
.
The syntax is as follows:
asadmin create-service [--name
service-name
] [--type das|node-agent]
--passwordfile
password-file
[--serviceproperties
serviceproperties
]
domain-or-node-agent-configuration-directory
For example, to create a service called
domain1
for
domain1
:
1. Run the following:
asadmin create-service --type das --passwordfile password.txt
/appserver/domains/domain1
This creates a service to restart the domain
domain1
automatically. In the background, the
command creates a manifest file from a template, validates the file, and imports it as a
service.
Note –
If a particular Enterprise Server domain should not have default user privileges,
modify the service's manifest and reimport the service. To determine a user's privileges, log
in as that user and type the command
ppriv -l
.
2. Once the service is created, enable it using the
svacdm enable
command:
svacdm enable /appserver/domains/domain1
3. Once enabled, if the domain goes down, SMF restarts it.
As you administer your service, the following Solaris commands are useful:
■
auths
■
smf_security
■
svcadm
■
svccfg
■
rbac
■
useradd
■
usermod
For more information on these commands, see the command manpages.
Restarting Automatically on Solaris 10
Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008
222
Содержание Sun GlassFish Enterprise Server 2.1
Страница 12: ...12 ...
Страница 13: ...Figures FIGURE 1 1 Enterprise Server Instance 29 FIGURE 9 1 RoleMapping 105 13 ...
Страница 14: ...14 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 62: ...62 ...
Страница 96: ...96 ...
Страница 126: ...126 ...
Страница 160: ...160 ...
Страница 214: ...214 ...
Страница 218: ...218 ...
Страница 230: ...230 ...