Hello all,
I am trying to create an rc.d script for my application. Current code looks
like the following: https://gist.github.com/3783889 . The man for rc.subr
says that I can override rc_* functions as well as pexp variable. However
with the script above commands like:
/etc/rc.d/my_daemon stop
do not call overridden functions (it can be seen in sh -x and if you place
echo in function body). Also I noticed that stop handler (default one as
overridden isn't called) ignored my pexp value and passed just "^${daemon}"
to pkill. What am I doing wrong?
Please assist.
Thanks a lot!
--
Victor