customizing services on solaris 10

Hi,

I woudl like to customize the default status of some of the services on solaris 10 ,like sendmail , ntp etc . II have a created a site.xml file with the below contents to test just with sendmail, but after rebooting, these settings are not effective. Though I specified sendmail to be disabled in site.xml, it is online after reboot. Can you please guide what I am missing here. Right now I am testing this on a standalone server and once this works out..would like to push the site.xml using jumpstart.

site.xml

--

<?xml version='1.0'?>

<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>

<service_bundle type='profile' name='default'>

<service name='network/smtp' version='1' type='service'>

<instance name='sendmail' enabled='false'/>

</service>

</service_bundle>

Thanks in advance.

-Boon

[963 byte] By [CoolBoona] at [2007-11-26 19:19:51]
# 1

> Hi,

> I woudl like to customize the default status of some

> of the services on solaris 10 ,like sendmail , ntp

> etc . II have a created a site.xml file with the

> below contents to test just with sendmail, but after

> rebooting, these settings are not effective. Though

> I specified sendmail to be disabled in site.xml, it

> is online after reboot. Can you please guide what I

> am missing here. Right now I am testing this on a

> standalone server and once this works out..would

> like to push the site.xml using jumpstart.

Is this the first time you've used the file?

The site.xml file is designed for jumpstart, when you want to control a service even before it's installed (so you can't just disable it).

The site.xml file is read and executed exactly one time (the first boot that it exists). So if you had one and you modified it, the modifications will never be read.

> site.xml

> --

> <?xml version='1.0'?>

> <!DOCTYPE service_bundle SYSTEM

> '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>

> <service_bundle type='profile' name='default'>

I don't see the XInclude line. Did you copy an existing profile? That's probably the best way to do this.

--

Darren

Darren_Dunhama at 2007-7-9 21:37:01 > top of Java-index,General,Installation...
# 2
Darren, Thanks for your quick reply. So I was under a wrong assumption that we can use site.xml anytime to customize . Can you send me any working copy of site.xml so that I can build for mine.Thanks much.Regards,
CoolBoona at 2007-7-9 21:37:01 > top of Java-index,General,Installation...
# 3

> Darren,

> Thanks for your quick reply. So I was under a wrong

> assumption that we can use site.xml anytime to

> customize.

In general, manifests and profiles are loaded only when seen the first time. After that, you're expected to edit the repository directly with svcadm/svccfg stuff.

For jumpstart though, it's perfect. You plop the site.xml file in place and it will activate on the first boot.

> Can you send me any working copy of

> site.xml so that I can build for mine.

Just make a copy of generic.xml and strip out all the stuff in the middle.

Here's the sun docs for how to do it:

http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5so?a=view

And looking more closely at my machine, the 'svccfg extract' command doesn't create that XInclude line, so I guess it's not necessary.

Good luck.

--

Darren

Darren_Dunhama at 2007-7-9 21:37:01 > top of Java-index,General,Installation...
# 4
Darren, Thank you so much for your help . Will try as you suggested.Thanks,
CoolBoona at 2007-7-9 21:37:01 > top of Java-index,General,Installation...