Writing site.xml

by Henry Pepper

Introduction

Purpose

Describes the site.xml structure.

The site.xml is used during OS boot, it is possible to enable or disable SMF entries.

Scope

Reference

copy the site.xml to /var/svc/profile/site.xml

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='profile' name='site'>
  <service name='avahi-bridge-dsd' type='service' version='0'>
    <instance name='default' enabled='false'/>
  </service>
</service_bundle>
  1. xmllint --valid site.xml > /dev/null
  2. svccfg apply site.xml
    • Apply immediately.
  3. grep version save_site.xml | awk -F"'" '
    Unknown macro: { print $2}
    ' | xargs -n1 svcs -l | grep enabled
    • Verify they have been disabled.

related commands

svccfg import site.xml

Labels

bigadmin bigadmin Delete
sysadmin sysadmin Delete
solaris10 solaris10 Delete
boot boot Delete
site site Delete
xml xml Delete
smf smf Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact