Solaris 10 services .xml howto

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Thu Oct 12 2006 - 16:54:03 EDT


I am in need of an .xml / solaris 10 svc file tutorial. I am trying to
port a working Named configuration from a solaris 9 server to a solaris 10
server. I copied the named.xml file from another, working, .xml file. The
/lib/svc/method/site/named file is basically my /etc/init.d/named file from
solaris 9. If I execute "/lib/svc/method/site/named start" manually,
everything starts up as I want. However, if I try to start it with svcadm,
the named service immediately drops into mainenance mode:

!/var/svc/log ] >> svcs site/named
STATE STIME FMRI
maintenance 15:07:06 svc:/site/named:default

>From the log file, it looks like there is a conflict with "initgroups".
Unfortunately I have no idea what this is. So I think I need a tutorial on
building the site/named.xml file. I am doing something wrong and I have
no idea what...

[ root!/var/svc/log ] >> more site-named\:default.log
[ Oct 12 15:06:30 Leaving maintenance because disable requested. ]
[ Oct 12 15:06:30 Disabled. ]
[ Oct 12 15:07:06 Enabled. ]
[ Oct 12 15:07:06 Executing start method ("/lib/svc/method/site/named start") ]
starting domain name server with a nonroot user in a chrooted environment.
named: initgroups(): Not owner
[ Oct 12 15:07:06 Method "start" exited with status 0 ]
[ Oct 12 15:07:06 Stopping because all processes in service exited. ]
[ Oct 12 15:07:06 Executing stop method ("/lib/svc/method/site/named stop") ]
rndc: connection to remote host closed

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:00 EDT