On 2013-02-23, russell <russ...@dotplan.dyndns.org> wrote:
> So I am using tftpd -r <socket> and my rewrite script works however I am 
> at a loss as to the best way to start tftpd.
>
>  From my experiments, the rewrite engine has to start before tftpd, 
> tftpd expects the socket to exist. however tftpd is started rather 
> earlier in /etc/rc than than a "pkg_scripts" rc.d entry(my initial choice).
>
> So my options as I see them are.
>
> 1 modify /etc/rd.d/tftpd to start the rewrite engine
> benifit:the two programs really do need to run together
> problems: will get erased during upgrade.
>
> 2 modify /etc/rc to start tftpd_rewrite_engine before tftps
> problems: nonstandard rc, changes will get erased during upgrade
>
> 3 remove tftpd from rc.conf.local and make custom rc.d/tftpd_local
>    that will start both processes from pkg_scripts
> problems: nonstandard tftpd start
>
>
> I am hoping I have missed somthing obvious but will probably go with 
> choice three(the pkg_scripts tftpd)

I would probably go for 3 as well, but note that the system scripts
(/etc/rc etc.) are in the etc*.tgz tarball, so they won't automatically
get overridden, the worst that could happen is needing a small amount
of extra work with sysmerge if the file changes.

Reply via email to