Hi, I'm writing a manifest for a DB; for a svcadm disable, I don't want to do a pkill but a graceful shutdown. I have to work with the possibility that there are other instances of the DB running on this box, and those processes may or may not be managed by SMF.
For the stop method, I check to see if there's a pid file, if that pid matches the pid being managed by SMF, I shutdown. Else, I assume those other running processes are not mine, print something, and exit. There is restarter/start_pid, but nothing like a current_pid, which leads me to believe SMF works through tracing the ctid to pids it owns. I may have to do this, it's a little more work since I can't grab it with svcprop, just checking that SMF does not keep a current_pid value for the service somewhere in the repository. It doesn't appear to, correct? CT