Todetermine if a user has the net_privaddr privilege, log in as that user and type the command
ppriv -l | grep net_privaddr.
Torun the asadmin create-service command, you must have solaris.smf.* authorization.
Seethe useradd and usermod man pages to nd out how to set the authorizations. You must
alsohave 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
authsmust be available in the PATH.For complete information on running this command, see
create-service(1).
Thesyntax is as follows:
asadmin create-service [--name service-name] [--type das|node-agent]
--passwordfile password-le [--serviceproperties serviceproperties]
domain-or-node-agent-conguration-directory
Forexample, to create a service called domain1 for domain1:
1. Runthe following:
asadmin create-service --type das --passwordfile password.txt
/appserver/domains/domain1
Thiscreates a service to restart the domain domain1 automatically. In the background, the
commandcreates a manifest le from a template, validates the le, and imports it as a
service.
Note– If a particular Enterprise Server domain should not have default user privileges,
modifythe service's manifest and reimport the service. To determine a user's privileges, log
inas that user and type the command ppriv -l.
2. Oncethe service is created, enable it using the svacdm enable command:
svacdm enable /appserver/domains/domain1
3. Onceenabled, if the domain goes down, SMF restarts it.
Asyou administer your service, the following Solaris commands are useful:
auths
smf_security
svcadm
svccfg
rbac
useradd
usermod
Formore information on these commands, see the command manpages.
RestartingAutomatically on Solaris 10
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008222