-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

>>>>> Some daemons will happend more stuffs to the command line
>>>>> than just
>>>>>>> $daemon $daemon_flags
>>>>> 
>>>>> Then $pexp should include everything that a daemon can
>>>>> append via rc.conf.local settings?
>>> No.
>> 
>> Would you mind elaborating on that?
> 
> Actually, you need to elaborate how one is supposed to include
> every possible options into pexp.

Ok, I'll try. My understanding was:
In cases - where the rc script is basically containing only

daemon=...
. /etc/rc.d/rc.subr
rc_cmd $i

a daemon is started by taking

1)
daemon=".... "
from the rc script

and 2)
daemon_flags defined in rc.conf.local (if any).


from rc.subr:

rc_start() {
        ${rcexec} "${daemon} ${daemon_flags} ${_bg}"
[...]

so there is nothing else included in such cases that would cause a
problem with pkill using '-fx'.

pexp incorporates these two parts:

pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"


In such default cases using
pkill with '-fx' would work out of the box and pkill would kill only
if daemons and parameters match completely, correct so far?

Using '-fx' would be problematic if the rc script itself defines
rc_start() that is different from the one in rc.subr.

Writing this email made it more clear :)
So they override rc_start() but still expect that rc.subr's
restart/stop works with them out of the box.



-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVhdTnAAoJEFv7XvVCELh0EO8P/005u61VFjmCWs7BMq9uUDE2
H43/bsQPB0rC71GBP4pFru5B2387miQ64vkhubXO/xZ7AaDF+SW519cfybAT/oIQ
1CUd4sgn2VuliDiSTXEa9YA0XQOoWe9wBOpYN/WgMtlGy3d+g69wx+HVJrbdYtPw
fXFfRDgAiZ91GFk2oEJaQj3KoF3ZxKNCRmHfNYB8ZvdTLdP4LMR7QQAdBnZmLkR/
TvzrpNdjipSVW0Kq/zXHT7fOX0TiEg6KtpR2/zFpfKLqk8KjAUdgn/yJGDDQ5YTo
hmm9pGAfWq2nD2E2d9SkOgP2kL5KnX9p3Nod03IhbB40ILpVhvNEBlFdaEeu92Lt
7V3My3Wc1iz4cCAYkvlzKeJi4ayNZaW/T0MRXGqpB2ZCl3CNXHBBNURSKiHYgZQr
e1nuFE9+tVtiAgb8nicMLMPpEWQF6Oyv01+I17IfOGVdwn5xSLUwPVhDGxAEPJam
t2q3+9erZCrFA3o50xxZrG5JdmLU7j1F7k7m+bB+o+iKqR/HdbeqRFdAMfjD+oVg
2QAFWjHMQyObzbNW2BpvluP6y9QLZKXilP9rJuvdJMBFOpJZyrstqNExwtHKKBmL
i6BX9N9HwJ5qsG65SUBBVWxP8b4uayXhQ362ewnjowjFliQrfeiQELrZLNdXBlZO
Fc7XaazScxdYKMxXSbo2
=cUxX
-----END PGP SIGNATURE-----

Reply via email to