On Wed, May 22, 2013 at 9:15 AM, Vadim Zhukov <persg...@gmail.com> wrote:
> 2013/5/22 C. L. Martinez <carlopm...@gmail.com>
>
>> On Wed, May 22, 2013 at 8:44 AM, Vadim Zhukov <persg...@gmail.com> wrote:
>> > 22.05.2013 10:19 пользователь "C. L. Martinez" <carlopm...@gmail.com>
>> > написал:
>> >
>> >
>> >>
>> >> Hi all,
>> >>
>> >>  I have a problem with some tcl rc.d startup scripts. Start and status
>> >> works ok but stop and restart, doesn't.
>> >
>> > Stupid question: does it stop if you kill it by pid directly? I've seen
>> > at
>> > least one daemon do far that ignores SIGTERM...
>> >
>>
>> Yes, doing a kill -9 pid, works and doing pkill -f "${pexp}", too ...
>> from command line ...
>
>
> Okay... Another stupid questions: did you modify your /etc/rc.d/rc.subr?
> What version has it in its RCS header, did you run sysmerge(8)? What if you
> add rc_stop() manually in your rcscript, same as in /etc/rc.d/rc.subr?
>

No, I have not modified rc.subr:

#       $OpenBSD: rc.subr,v 1.68 2012/11/19 07:10:59 ajacoutot Exp $
#
# Copyright (c) 2010, 2011 Antoine Jacoutot <ajacou...@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwa...@openbsd.org>
# Copyright (c) 2010, 2011 Robert Nagy <rob...@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.


# Default functions and variables used by rc.d(8) scripts.

rc_err() {
        echo $1 1>&2
        exit 1
}

This OpenBSD host it is a clean 5.3 amd64 install ...

Yes, I have tried to insert rc_stop in my startup script, but results
are the same: process is never stopped ...

Reply via email to