Page MenuHomeFreeBSD

Move simple_httpd out of picobsd, add HTTPD option
ClosedPublic

Authored by kevans on Sep 20 2019, 2:40 AM.

Details

Summary

picobsd/tinyware has had this compact HTTPD server for a long time, and some people do use it. Move it out into usr.sbin in advance of any action being taken on picobsd.

This has been gated behind an HTTPD option defaulted to *off*, primarily for two reasons:
1.) This code likely needs a good audit, as it's been living off in picobsd land for a long time, and
2.) We don't currently ship an httpd and this may not be a welcome surprise.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kevans created this revision.Sep 20 2019, 2:40 AM
This revision is now accepted and ready to land.Sep 20 2019, 4:23 AM
This revision was automatically updated to reflect the committed changes.
kaktus added a subscriber: kaktus.Tue, Oct 1, 4:43 PM

Wouldn't /usr/libexec be a better place for it, like for many other such daemons (like fingerd etc…)?

kevans added a comment.Tue, Oct 1, 4:52 PM

Wouldn't /usr/libexec be a better place for it, like for many other such daemons (like fingerd etc…)?

I think this is unclear without a better vision for how it actually get used. fingerd and other daemons in /usr/libexec are expected to be driven by, for example, inetd -- other programs in general.

kaktus added a comment.Tue, Oct 1, 5:03 PM

But there is also dma, sendmail and parts of kerberos… :-)

Wouldn't /usr/libexec be a better place for it, like for many other such daemons (like fingerd etc…)?

According to hier(7) it belongs to /usr/sbin because it's stand-alone daemon that needs it's own startup script (to be created).

Files living in /usr/libexec like fingerd etc. are either parts of bigger systems like MTA or NFS, or started by other processes like inetd.