Unix Technical Forum

Re: How to find out why sol 10 manifest fails?

This is a discussion on Re: How to find out why sol 10 manifest fails? within the comp.unix.solaris forums, part of the Solaris Operating System category; --> This belated posting is for the benefit of those who experience this problem later. If the service is called ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2008, 07:06 AM
exlover@ml1.net
 
Posts: n/a
Default Re: How to find out why sol 10 manifest fails?

This belated posting is for the benefit of those who experience this
problem later.
If the service is called say foo and you have a stop method other than
:kill which does "pkill foo", then your stop method will fail with
error 208 if foo is a substring of the script that does the stopping.

Example: service name=smbd, stop method name=/lib/svc/method/arl_smbd
if arl_smbd pkills smbd then the signal will terminate both smbd and
srl_smbd thereby not allowing exit 0 or whatever the last line is to be
reached.

Jay G. Scott wrote:
> i tried doing this the right way, ie, with manifests and methods.
> didn't work. so, i copied the methods to /etc/init.d,
> and manually started them there, to prove that the methods, at least
> weren't broken. this does get the daemons to start, and i DO get
> access from my peecee.
>
> /etc/init.d/arl_smbd start
> /etc/init.d/arl_nmbd start
> /etc/init.d/arl_winbindd start
>
> i did join the domain.
>
> well, using those SAME methods and--well, i __hope__--appropriate
> manifests, i can't get them to start. i __believe__ if they'll
> start then i can join the domain later, and... it'll be okay.
>
> but trying to figure out why they aren't starting isn't going well.
>
> dismayed# more site-smbd:smbd.log
> [ May 23 13:10:34 Disabled. ]
> [ May 23 13:10:34 Rereading configuration. ]
> [ Jun 28 12:13:46 Disabled. ]
> [ Jun 28 12:13:47 Rereading configuration. ]
> [ Jun 28 12:30:07 Enabled. ]
> [ Jun 28 13:21:20 Disabled. ]
> [ Jun 28 13:21:25 Enabled. ]
> [ Jun 28 13:21:25 Executing start method ("/lib/svc/method/arl_smbd start") ]
> SAMBA (smbd) server
> [ Jun 28 13:21:26 Method "start" exited with status 0 ]
> [ Jun 28 13:21:27 Stopping because service restarting. ]
> [ Jun 28 13:21:27 Executing stop method ("/lib/svc/method/arl_smbd stop 90") ]
> [ Jun 28 13:21:27 Method "stop" exited with status 208 ]
> [ Jun 28 13:21:27 Executing stop method ("/lib/svc/method/arl_smbd stop 90") ]
> [ Jun 28 13:21:27 Method "stop" exited with status 208 ]
> [ Jun 28 13:21:27 Executing stop method ("/lib/svc/method/arl_smbd stop 90") ]
> [ Jun 28 13:21:27 Method "stop" exited with status 208 ]
>
> tried looking up the ...208 msg on sunsolve, got a bunch of "stop-a" hits.
>
> and it looks like it gets started, and something comes along to kill it.
> ie, it says start exited with status zero.
>
> i presume whatever blunder i've made is common to all three, since i did them
> as close to one another as i could.
>
> dismayed# !ps
> ps -ef | grep mb
> dismayed#
>
> so nothing is running.
> dismayed# svcadm restart smbd
> dismayed# svcs -vx smbd
> svc:/site/smbd:smbd (smbd)
> State: maintenance since Tue Jun 28 13:21:27 2005
> Reason: Method failed repeatedly.
> See: http://sun.com/msg/SMF-8000-8Q
> See: /var/svc/log/site-smbd:smbd.log
> Impact: This service is not running.
>
> dismayed# svcadm clear smbd
> dismayed# svcadm restart smbd
> ismayed# svcs -vx smbd
> svc:/site/smbd:smbd (smbd)
> State: maintenance since Tue Jun 28 13:52:16 2005
> Reason: Method failed repeatedly.
> See: http://sun.com/msg/SMF-8000-8Q
> See: /var/svc/log/site-smbd:smbd.log
> Impact: This service is not running.
> [ Jun 28 13:52:09 Executing start method ("/lib/svc/method/arl_smbd start") ]
> SAMBA (smbd) server
> [ Jun 28 13:52:09 Method "start" exited with status 0 ]
> [ Jun 28 13:52:16 Stopping because service restarting. ]
> [ Jun 28 13:52:16 Executing stop method ("/lib/svc/method/arl_smbd stop 98") ]
> [ Jun 28 13:52:16 Method "stop" exited with status 208 ]
> [ Jun 28 13:52:16 Executing stop method ("/lib/svc/method/arl_smbd stop 98") ]
> [ Jun 28 13:52:16 Method "stop" exited with status 208 ]
> [ Jun 28 13:52:16 Executing stop method ("/lib/svc/method/arl_smbd stop 98") ]
> [ Jun 28 13:52:16 Method "stop" exited with status 208 ]
>
> ummm. does this tell anybody anything?
>
> if i edit the manifest, do i have to re-import every time?
>
> j.
> --
> Jay Scott 512-835-3553 gl@arlut.utexas.edu
> Head of Sun Support, Sr. Operating Systems Specialist
> Applied Research Labs, Computer Science Div. S224
> University of Texas at Austin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2008, 07:07 AM
Scott Howard
 
Posts: n/a
Default Re: How to find out why sol 10 manifest fails?

exlover@ml1.net <exlover@ml1.net> wrote:
> This belated posting is for the benefit of those who experience this
> problem later.
> If the service is called say foo and you have a stop method other than
> :kill which does "pkill foo", then your stop method will fail with
> error 208 if foo is a substring of the script that does the stopping.
>
> Example: service name=smbd, stop method name=/lib/svc/method/arl_smbd
> if arl_smbd pkills smbd then the signal will terminate both smbd and
> srl_smbd thereby not allowing exit 0 or whatever the last line is to be
> reached.


This is why pkill has a -x option :

-x Considers only processes whose argument
string or executable file name exactly
matches the specified pattern to be matching
processes. The pattern match is considered
to be exact when all characters in the pro-
cess argument string or executable file name
match the pattern.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com