getting a pid from a sevice instance

getting a pid from a sevice instance

Post by keith.micha.. » Sun, 08 May 2005 04:46:23



If I do svcs -p I can see pids associated with service instances.  How
can get the pid for a particular instance from my c program?  I need to
send a HUP to mapid and I've looked at scf_service_get_instance and
scf_simple_prop_get but it doesn't look like they do that...
 
 
 

getting a pid from a sevice instance

Post by Casper H.S. Di » Fri, 20 May 2005 18:24:16



>If I do svcs -p I can see pids associated with service instances.  How
>can get the pid for a particular instance from my c program?  I need to
>send a HUP to mapid and I've looked at scf_service_get_instance and
>scf_simple_prop_get but it doesn't look like they do that...

A signal or just a refresh?

Can you do this through "svcadm refresh"?

Casper

 
 
 

1. Getting children's PID with parent's pid?

Hi all,

     Is there a way to get children's pid, given the parent's pid in
C++, RedHat 6.2?? I'm looking for something that is similar to
getppid, getpid... instead of parsing anything from /proc or ps.

     Note that I'm not the one who fork the children...

Thanks!

- Mag

2. Need help: Can't use any programs, get Permission Denied message

3. Zebra: Multiple instances and routing between instances?

4. GRUB os list

5. How to make a RSH and getting is PID.

6. NEC Versa LX - PCMCIA hangs machine

7. Solaris: getting executable name from pid

8. GNU and Linux

9. Getting the PID

10. getting process pid

11. getting pid with ps grep

12. How to find children PID's given parent PID?

13. NSCA: "Could not log pid to file httpd.pid"