Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm creating a solaris service using SMF by following steps:

  1. Create SMF manifest
  2. Import manifest via svccfg
  3. Enable it using svcadm
  4. Check status using svcs

Now in this process i had frequently added/deleted/modified the manifest. Sometimes i killed the service also. But suddenly it stopped showing any status in svcs. No logs are being generated in /var/svc/log/. How to bring it back working?

Currently i made it working again by rebooting the machine. Is there any software method also to perform the task?

Solaris 10 sparc architecture

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If svcs is not showing anything you've managed to hose SMF.
This tends to happen when you Kermit Flail on systems (frequently added/deleted/modified the manifest. Sometimes i killed the service also).

In this situation rebooting is your best option -- SMF is not designed to be "restarted".

share|improve this answer
    
Thanks a lot for replying –  bikram990 Feb 22 '13 at 5:33
    
can you please elaborate "hose SMF" and "Kermit Flail" I could not understand these! –  bikram990 Feb 22 '13 at 5:39
    
@Bikram990 "You broke it because you made a bunch of changes without properly planning and thinking through the entire process. Next time think everything through very carefully before you start so you're not making multiple changes." –  voretaq7 Feb 22 '13 at 18:29
    
Now i have little more information on this. i.e. in which scenario its happening. It happens when you start a service and the service crashes/is forcefully killed. In either case shouldn't the SMF restart the service? –  bikram990 May 8 '13 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.