Used refresh to call the restart script.
-Srinivas
Brandorr wrote:
> Yes. refresh
>
> On 9/29/07, Peter Tribble <peter.tribble at gmail.com> wrote:
>
>> On 9/29/07, Brandorr <brandorr at opensolaris.org> wrote:
>>
>>> Did you ever get an answer??
>>>
>>> On 6/13/07, Srinivas Krishnan <Srinivas.Krishnan at sun.com> wrote:
>>>
>>>> Hi David,
>>>>
>>>> In SMF, svcadm restart <svc_name> calls stop and start method. But
>>>> instead of a stop and start i need to call my own restart script. Can
>>>> this be done, if yes please let me know how?
>>>>
>> Isn't this done with 'svcadm refresh'?
>>
>> That's how I do it - define a refresh method for apache, for example,
>> that gets it to reread its configuration file.
>>
>> (That's assuming your custom restart script does something along the
>> lines of sending the running service a signal, maybe doing some extra
>> work along the way. I'm not sure what having a refresh method that
>> would actually stop the service would do, though.)
>>
>> --
>> -Peter Tribble
>> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
>>
>>
>
>
>