Page MenuHomeFreeBSD

Move simple_httpd out of picobsd, add HTTPD option
ClosedPublic

Authored by kevans on Sep 20 2019, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 11:44 AM
Unknown Object (File)
Mar 12 2024, 8:53 AM
Unknown Object (File)
Mar 12 2024, 8:50 AM
Unknown Object (File)
Mar 12 2024, 8:50 AM
Unknown Object (File)
Mar 8 2024, 5:24 AM
Unknown Object (File)
Jan 4 2024, 9:45 AM
Unknown Object (File)
Jan 4 2024, 9:44 AM
Unknown Object (File)
Jan 4 2024, 9:44 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 - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26581

Event Timeline

This revision is now accepted and ready to land.Sep 20 2019, 4:23 AM

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

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.

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.