Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-14 Thread Martin-Éric Racine
to 14. lokak. 2021 klo 17.52 Martin Pitt (mp...@debian.org) kirjoitti:
> Control: tag -1 pending
> Control: tag 991324 pending
> Control: tag 991884 pending

Thanks!

> > +micro-httpd (20140814-2.1) unstable; urgency=medium
>
> I just wondered about that unfuzzing of the patch -- that might disrupt the
> patch workflow from git, and is not really necessary for the NMU. It's easy
> enough to revert (i.e. simply not apply to git) of course. But for that reason
> I uploaded it to DELAYED/2 for now, in case you change your mind or Sudip
> objects.

It can be reverted if desired.  The change mostly is cosmetic anyhow
(slightly different diff headings).

I initially ran 'quilt refresh' because I tried applying a security
patch found via another distro while investigating the systemd issues.
dpkg-build complained about a fuzzy patch, so I refreshed.  In the
end, it turned out that the other distro's patch is for a fork of the
same source code and thus doesn't apply to the original source code we
still use at Debian.

Martin-Éric



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-14 Thread Martin Pitt
Control: tag -1 pending
Control: tag 991324 pending
Control: tag 991884 pending

Hello Martin-Éric,

> +micro-httpd (20140814-2.1) unstable; urgency=medium

Thanks! Reading https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983232#15
scared me a bit (users shouldn't use edit --full normally, and daemon-reload is
not necessary then), but your debdiff has this correct. The main parts all look
sensible to me, thanks!

I just wondered about that unfuzzing of the patch -- that might disrupt the
patch workflow from git, and is not really necessary for the NMU. It's easy
enough to revert (i.e. simply not apply to git) of course. But for that reason
I uploaded it to DELAYED/2 for now, in case you change your mind or Sudip
objects.

Thanks!

Martin



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-14 Thread Martin-Éric Racine
Today really seems to be a "Typos r Us" day for me.  Yet another fix
to the NEWS file addition.  Debdiff attached.

to 14. lokak. 2021 klo 17.24 Martin-Éric Racine
(martin-eric.rac...@iki.fi) kirjoitti:
>
> ... and, sure enough, the previous message came with a stupid typo in
> the NEWS file.
>
> Fixed version attached.
>
> to 14. lokak. 2021 klo 17.21 Martin-Éric Racine
> (martin-eric.rac...@iki.fi) kirjoitti:
> >
> > debdiff attached.
> >
> > Martin-Éric
> >
> > su 10. lokak. 2021 klo 18.32 Sudip Mukherjee
> > (sudipm.mukher...@gmail.com) kirjoitti:
> > >
> > > Hi Martin-Éric,
> > >
> > > On Sat, Oct 9, 2021 at 7:14 PM Martin-Éric Racine
> > >  wrote:
> > > >
> > > > ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
> > > > (sudipm.mukher...@gmail.com) kirjoitti:
> > > > > On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
> > > > >  wrote:
> > > > > >
> > > > > > Package: micro-httpd
> > > > > > Version: 20051212-15.1
> > > > > > Severity: normal
> > > > > >
> > > > > > -BEGIN PGP SIGNED MESSAGE-
> > > > > > Hash: SHA256
> > > > > >
> > > > > > The dependencies in the systemd files that currently ship with 
> > > > > > micro-httpd only work if micro-httpd is bound to 0.0.0.0 as 
> > > > > > shipped. If it's bound to another IP address, systemd will report a 
> > > > > > failure to launch micro-httpd, because all network interfaces are 
> > > > > > not up yet, so the IP we're trying to bind to hasn't been assigned 
> > > > > > to any interface yet.
> > > > >
> > > > > Thanks for using micro-httpd and testing. Will attend to this one and
> > > > > also the earlier one that you have raised after the freeze is over.
> > > >
> > > > Hey Sudip!
> > > >
> > > > Would you have time to look into this now?
> > >
> > > Sorry for the delay, but too busy with $dayjob to properly do and test it.
> > > Since you are using it and have it working with the configuration
> > > changes, will you mind doing a NMU to it (and the other two) please.
> > > And if you are doing NMU please feel free to upload to 0-day.
> > >
> > >
> > > --
> > > Regards
> > > Sudip
diff -Nru micro-httpd-20140814/debian/changelog 
micro-httpd-20140814/debian/changelog
--- micro-httpd-20140814/debian/changelog   2020-02-06 20:40:35.0 
+0200
+++ micro-httpd-20140814/debian/changelog   2021-10-14 16:02:47.0 
+0300
@@ -1,3 +1,17 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  * Non-Maintainer Upload.
+  * Fixed "cannot configure the root directory if started by systemd
+instead of inetd" by adding a NEWS item (Closes: #983232).
+  * Fixed "systemd install dependency fails if binding to IP other than
+0.0.0.0" by adding FreeBind=true to the socket unit (Closes: #991324).
+Thanks to Ansgar Burchardt for the solution.
+  * Fixed "micro-httpd@.service:6: Special user nobody configured, this is
+not safe!" by using the canonical www-data user (Closes: #991884).
+  * Ran 'quilt refresh' which defuzzed 30_makefile-strip-fix.dpatch
+
+ -- Martin-Éric Racine   Thu, 14 Oct 2021 16:02:47 
+0300
+
 micro-httpd (20140814-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru micro-httpd-20140814/debian/micro-httpd@.service 
micro-httpd-20140814/debian/micro-httpd@.service
--- micro-httpd-20140814/debian/micro-httpd@.service2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd@.service2021-10-14 
13:54:03.0 +0300
@@ -3,8 +3,7 @@
 Documentation=man:micro-httpd(8)
 
 [Service]
-User=nobody
+User=www-data
 Group=www-data
 ExecStart=-/usr/sbin/micro-httpd /var/www/html
 StandardInput=socket
-
diff -Nru micro-httpd-20140814/debian/micro-httpd.socket 
micro-httpd-20140814/debian/micro-httpd.socket
--- micro-httpd-20140814/debian/micro-httpd.socket  2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd.socket  2021-10-14 
15:54:56.0 +0300
@@ -5,6 +5,7 @@
 [Socket]
 ListenStream=0.0.0.0:80
 Accept=true
+FreeBind=true
 
 [Install]
 WantedBy=sockets.target
diff -Nru micro-httpd-20140814/debian/NEWS micro-httpd-20140814/debian/NEWS
--- micro-httpd-20140814/debian/NEWS2020-02-06 01:14:09.0 +0200
+++ micro-httpd-20140814/debian/NEWS2021-10-14 16:02:47.0 +0300
@@ -1,3 +1,24 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  On hosts booting with systemd, the daemon is configured via systemd units.
+
+  1) To change the document root, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd@.service
+
+ Then change the second part of ExecStart to a different path.
+
+  2) To change IP address or port, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd.socket
+  
+ Then change ListenStream to a different IP address and port combination.
+
+  On hosts booting with the traditional BSD init, the daemon is configured via
+  the /etc/inetd.conf (document root) and /etc/services (port) text files.
+
+ -- Martin-Éric Racine   Thu, 14 

Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-14 Thread Martin-Éric Racine
... and, sure enough, the previous message came with a stupid typo in
the NEWS file.

Fixed version attached.

to 14. lokak. 2021 klo 17.21 Martin-Éric Racine
(martin-eric.rac...@iki.fi) kirjoitti:
>
> debdiff attached.
>
> Martin-Éric
>
> su 10. lokak. 2021 klo 18.32 Sudip Mukherjee
> (sudipm.mukher...@gmail.com) kirjoitti:
> >
> > Hi Martin-Éric,
> >
> > On Sat, Oct 9, 2021 at 7:14 PM Martin-Éric Racine
> >  wrote:
> > >
> > > ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
> > > (sudipm.mukher...@gmail.com) kirjoitti:
> > > > On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
> > > >  wrote:
> > > > >
> > > > > Package: micro-httpd
> > > > > Version: 20051212-15.1
> > > > > Severity: normal
> > > > >
> > > > > -BEGIN PGP SIGNED MESSAGE-
> > > > > Hash: SHA256
> > > > >
> > > > > The dependencies in the systemd files that currently ship with 
> > > > > micro-httpd only work if micro-httpd is bound to 0.0.0.0 as shipped. 
> > > > > If it's bound to another IP address, systemd will report a failure to 
> > > > > launch micro-httpd, because all network interfaces are not up yet, so 
> > > > > the IP we're trying to bind to hasn't been assigned to any interface 
> > > > > yet.
> > > >
> > > > Thanks for using micro-httpd and testing. Will attend to this one and
> > > > also the earlier one that you have raised after the freeze is over.
> > >
> > > Hey Sudip!
> > >
> > > Would you have time to look into this now?
> >
> > Sorry for the delay, but too busy with $dayjob to properly do and test it.
> > Since you are using it and have it working with the configuration
> > changes, will you mind doing a NMU to it (and the other two) please.
> > And if you are doing NMU please feel free to upload to 0-day.
> >
> >
> > --
> > Regards
> > Sudip
diff -Nru micro-httpd-20140814/debian/changelog 
micro-httpd-20140814/debian/changelog
--- micro-httpd-20140814/debian/changelog   2020-02-06 20:40:35.0 
+0200
+++ micro-httpd-20140814/debian/changelog   2021-10-14 16:02:47.0 
+0300
@@ -1,3 +1,17 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  * Non-Maintainer Upload.
+  * Fixed "cannot configure the root directory if started by systemd
+instead of inetd" by adding a NEWS item (Closes: #983232).
+  * Fixed "systemd install dependency fails if binding to IP other than
+0.0.0.0" by adding FreeBind=true to the socket unit (Closes: #991324).
+Thanks to Ansgar Burchardt for the solution.
+  * Fixed "micro-httpd@.service:6: Special user nobody configured, this is
+not safe!" by using the canonical www-data user (Closes: #991884).
+  * Ran 'quilt refresh' which defuzzed 30_makefile-strip-fix.dpatch
+
+ -- Martin-Éric Racine   Thu, 14 Oct 2021 16:02:47 
+0300
+
 micro-httpd (20140814-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru micro-httpd-20140814/debian/micro-httpd@.service 
micro-httpd-20140814/debian/micro-httpd@.service
--- micro-httpd-20140814/debian/micro-httpd@.service2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd@.service2021-10-14 
13:54:03.0 +0300
@@ -3,8 +3,7 @@
 Documentation=man:micro-httpd(8)
 
 [Service]
-User=nobody
+User=www-data
 Group=www-data
 ExecStart=-/usr/sbin/micro-httpd /var/www/html
 StandardInput=socket
-
diff -Nru micro-httpd-20140814/debian/micro-httpd.socket 
micro-httpd-20140814/debian/micro-httpd.socket
--- micro-httpd-20140814/debian/micro-httpd.socket  2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd.socket  2021-10-14 
15:54:56.0 +0300
@@ -5,6 +5,7 @@
 [Socket]
 ListenStream=0.0.0.0:80
 Accept=true
+FreeBind=true
 
 [Install]
 WantedBy=sockets.target
diff -Nru micro-httpd-20140814/debian/NEWS micro-httpd-20140814/debian/NEWS
--- micro-httpd-20140814/debian/NEWS2020-02-06 01:14:09.0 +0200
+++ micro-httpd-20140814/debian/NEWS2021-10-14 16:02:47.0 +0300
@@ -1,3 +1,24 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  On hosts booting with systemd, the daemon is configured via systemd units.
+
+  1) To change the document root, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd@.service
+
+ Then change the second part of ExecStart to a different path.
+
+  2) To change IP address or port, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd.socket
+  
+ Then change ListenStream to a different IP address and port combination.
+
+  On hosts booting with the traditional BSD init, the daemon in configured via
+  the /etc/inetd.conf (document root) and /etc/services (port) text files.
+
+ -- Martin-Éric Racine   Thu, 14 Oct 2021 16:53:42 
+0300
+
 micro-httpd (20051212-5) unstable; urgency=low
 
   The binary name has changed from micro_httpd to the micro-httpd.
diff -Nru micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch 
micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch
--- 

Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-14 Thread Martin-Éric Racine
debdiff attached.

Martin-Éric

su 10. lokak. 2021 klo 18.32 Sudip Mukherjee
(sudipm.mukher...@gmail.com) kirjoitti:
>
> Hi Martin-Éric,
>
> On Sat, Oct 9, 2021 at 7:14 PM Martin-Éric Racine
>  wrote:
> >
> > ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
> > (sudipm.mukher...@gmail.com) kirjoitti:
> > > On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
> > >  wrote:
> > > >
> > > > Package: micro-httpd
> > > > Version: 20051212-15.1
> > > > Severity: normal
> > > >
> > > > -BEGIN PGP SIGNED MESSAGE-
> > > > Hash: SHA256
> > > >
> > > > The dependencies in the systemd files that currently ship with 
> > > > micro-httpd only work if micro-httpd is bound to 0.0.0.0 as shipped. If 
> > > > it's bound to another IP address, systemd will report a failure to 
> > > > launch micro-httpd, because all network interfaces are not up yet, so 
> > > > the IP we're trying to bind to hasn't been assigned to any interface 
> > > > yet.
> > >
> > > Thanks for using micro-httpd and testing. Will attend to this one and
> > > also the earlier one that you have raised after the freeze is over.
> >
> > Hey Sudip!
> >
> > Would you have time to look into this now?
>
> Sorry for the delay, but too busy with $dayjob to properly do and test it.
> Since you are using it and have it working with the configuration
> changes, will you mind doing a NMU to it (and the other two) please.
> And if you are doing NMU please feel free to upload to 0-day.
>
>
> --
> Regards
> Sudip
diff -Nru micro-httpd-20140814/debian/changelog 
micro-httpd-20140814/debian/changelog
--- micro-httpd-20140814/debian/changelog   2020-02-06 20:40:35.0 
+0200
+++ micro-httpd-20140814/debian/changelog   2021-10-14 16:02:47.0 
+0300
@@ -1,3 +1,17 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  * Non-Maintainer Upload.
+  * Fixed "cannot configure the root directory if started by systemd
+instead of inetd" by adding a NEWS item (Closes: #983232).
+  * Fixed "systemd install dependency fails if binding to IP other than
+0.0.0.0" by adding FreeBind=true to the socket unit (Closes: #991324).
+Thanks to Ansgar Burchardt for the solution.
+  * Fixed "micro-httpd@.service:6: Special user nobody configured, this is
+not safe!" by using the canonical www-data user (Closes: #991884).
+  * Ran 'quilt refresh' which defuzzed 30_makefile-strip-fix.dpatch
+
+ -- Martin-Éric Racine   Thu, 14 Oct 2021 16:02:47 
+0300
+
 micro-httpd (20140814-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru micro-httpd-20140814/debian/micro-httpd@.service 
micro-httpd-20140814/debian/micro-httpd@.service
--- micro-httpd-20140814/debian/micro-httpd@.service2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd@.service2021-10-14 
13:54:03.0 +0300
@@ -3,8 +3,7 @@
 Documentation=man:micro-httpd(8)
 
 [Service]
-User=nobody
+User=www-data
 Group=www-data
 ExecStart=-/usr/sbin/micro-httpd /var/www/html
 StandardInput=socket
-
diff -Nru micro-httpd-20140814/debian/micro-httpd.socket 
micro-httpd-20140814/debian/micro-httpd.socket
--- micro-httpd-20140814/debian/micro-httpd.socket  2020-02-06 
01:14:09.0 +0200
+++ micro-httpd-20140814/debian/micro-httpd.socket  2021-10-14 
15:54:56.0 +0300
@@ -5,6 +5,7 @@
 [Socket]
 ListenStream=0.0.0.0:80
 Accept=true
+FreeBind=true
 
 [Install]
 WantedBy=sockets.target
diff -Nru micro-httpd-20140814/debian/NEWS micro-httpd-20140814/debian/NEWS
--- micro-httpd-20140814/debian/NEWS2020-02-06 01:14:09.0 +0200
+++ micro-httpd-20140814/debian/NEWS2021-10-14 16:02:47.0 +0300
@@ -1,3 +1,24 @@
+micro-httpd (20140814-2.1) unstable; urgency=medium
+
+  On hosts booting with systemd, the daemon is configured via systemd units.
+
+  1) To change the document root, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd@.service
+
+ Then change the second part of ExecStart to a different path.
+
+  2) To change IP address or port, type the following line in a command shell:
+
+   sudo systemctl edit micro-httpd.socket
+  
+ Then change ListenStream to a different IP address and port combination.
+
+  On hosts booting with the traditional BSD init, the daemon in configure via
+  the /etc/inetd.conf (document root) and /etc/services (port) text files.
+
+ -- Martin-Éric Racine   Thu, 14 Oct 2021 16:53:42 
+0300
+
 micro-httpd (20051212-5) unstable; urgency=low
 
   The binary name has changed from micro_httpd to the micro-httpd.
diff -Nru micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch 
micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch
--- micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch 
2020-02-06 01:14:09.0 +0200
+++ micro-httpd-20140814/debian/patches/30-makefile-strip-fix.patch 
2021-10-14 13:54:03.0 +0300
@@ -10,10 +10,10 @@
  Makefile |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
 
-diff --git 

Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-10 Thread Sudip Mukherjee
Hi Martin-Éric,

On Sat, Oct 9, 2021 at 7:14 PM Martin-Éric Racine
 wrote:
>
> ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
> (sudipm.mukher...@gmail.com) kirjoitti:
> > On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
> >  wrote:
> > >
> > > Package: micro-httpd
> > > Version: 20051212-15.1
> > > Severity: normal
> > >
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA256
> > >
> > > The dependencies in the systemd files that currently ship with 
> > > micro-httpd only work if micro-httpd is bound to 0.0.0.0 as shipped. If 
> > > it's bound to another IP address, systemd will report a failure to launch 
> > > micro-httpd, because all network interfaces are not up yet, so the IP 
> > > we're trying to bind to hasn't been assigned to any interface yet.
> >
> > Thanks for using micro-httpd and testing. Will attend to this one and
> > also the earlier one that you have raised after the freeze is over.
>
> Hey Sudip!
>
> Would you have time to look into this now?

Sorry for the delay, but too busy with $dayjob to properly do and test it.
Since you are using it and have it working with the configuration
changes, will you mind doing a NMU to it (and the other two) please.
And if you are doing NMU please feel free to upload to 0-day.


--
Regards
Sudip



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-10-09 Thread Martin-Éric Racine
ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
(sudipm.mukher...@gmail.com) kirjoitti:
> On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
>  wrote:
> >
> > Package: micro-httpd
> > Version: 20051212-15.1
> > Severity: normal
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > The dependencies in the systemd files that currently ship with micro-httpd 
> > only work if micro-httpd is bound to 0.0.0.0 as shipped. If it's bound to 
> > another IP address, systemd will report a failure to launch micro-httpd, 
> > because all network interfaces are not up yet, so the IP we're trying to 
> > bind to hasn't been assigned to any interface yet.
>
> Thanks for using micro-httpd and testing. Will attend to this one and
> also the earlier one that you have raised after the freeze is over.

Hey Sudip!

Would you have time to look into this now?

Martin-Éric



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-07-22 Thread Martin-Éric Racine
Hey Sudip!

ti 20. heinäk. 2021 klo 22.49 Sudip Mukherjee
(sudipm.mukher...@gmail.com) kirjoitti:
> On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
>  wrote:
> >
> > Package: micro-httpd
> > Version: 20051212-15.1
> > Severity: normal
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > The dependencies in the systemd files that currently ship with micro-httpd 
> > only work if micro-httpd is bound to 0.0.0.0 as shipped. If it's bound to 
> > another IP address, systemd will report a failure to launch micro-httpd, 
> > because all network interfaces are not up yet, so the IP we're trying to 
> > bind to hasn't been assigned to any interface yet.
>
> Thanks for using micro-httpd and testing. Will attend to this one and
> also the earlier one that you have raised after the freeze is over.

Thanks for the acknowledgement. Looking forward to this.

Martin-Éric



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-07-20 Thread Sudip Mukherjee
Hi Martin-Éric,

On Tue, Jul 20, 2021 at 6:51 PM Martin-Éric Racine
 wrote:
>
> Package: micro-httpd
> Version: 20051212-15.1
> Severity: normal
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> The dependencies in the systemd files that currently ship with micro-httpd 
> only work if micro-httpd is bound to 0.0.0.0 as shipped. If it's bound to 
> another IP address, systemd will report a failure to launch micro-httpd, 
> because all network interfaces are not up yet, so the IP we're trying to bind 
> to hasn't been assigned to any interface yet.

Thanks for using micro-httpd and testing. Will attend to this one and
also the earlier one that you have raised after the freeze is over.


-- 
Regards
Sudip



Bug#991324: micro-httpd: systemd install dependency fails if binding to IP other than 0.0.0.0

2021-07-20 Thread Martin-Éric Racine
Package: micro-httpd
Version: 20051212-15.1
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

The dependencies in the systemd files that currently ship with micro-httpd only 
work if micro-httpd is bound to 0.0.0.0 as shipped. If it's bound to another IP 
address, systemd will report a failure to launch micro-httpd, because all 
network interfaces are not up yet, so the IP we're trying to bind to hasn't 
been assigned to any interface yet.

What I currently have:

/etc/systemd/system/micro-httpd@.service
  
***
[Unit]
Description=micro-httpd
Documentation=man:micro-httpd(8)

[Service]
User=nobody
Group=www-data
ExecStart=-/usr/sbin/micro-httpd /home/perkelix/public_html
StandardInput=socket
***

/etc/systemd/system/micro-httpd.socket  
 
***
[Unit]
Description=micro-httpd
Documentation=man:micro-httpd(8)

[Socket]
ListenStream=172.16.1.2:8080
Accept=true

[Install]
WantedBy=sockets.target
***

The interface with 172.16.1.2 is only present later during boot after ifupdown 
stanzas in /etc/network/interfaces have been executed. The [Install] therefore 
probably needs a WantedBy other than sockets e.g. network-online or similar.
 
- -- System Information:
Debian Release: 10.10
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-17-amd64 (SMP w/8 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8), 
LANGUAGE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages micro-httpd depends on:
ii  init-system-helpers  1.56+nmu1
ii  libc62.28-10
ii  netcat-traditional   1.10-41.1
ii  systemd-sysv 241-7~deb10u8

micro-httpd recommends no packages.

Versions of packages micro-httpd suggests:
pn  micro-proxy  

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmD3CqwACgkQrh+Cd8S0
17YJIRAAkHhkZV4DRsw4sFAxmWtx3D2CpZpuVAuRym2Fkl57WUyTV+g8ajoHPxWc
8RyMlLeShyhe2mCyAPF6xOfa1cIWdqaYBBQrvuZTVCsjd9f9U8WBAvWhW9se2FhZ
cPxLZOph+US908R3DtFn3PXK+jf+CnZhyi7FRwm9MyGOhPPAp6ELitJ+Ik1rOvRc
Z940Sr9Y4627yxK0oQ4Z8uAoMaHwoUM5jbbS0l5FwOsLH8Xi43LwlDmwi+YrWaFd
rhPWBdpc6nz9ZwYre6rFVZ855Po0gjalLIMP3AyztsIJaEWgkVZj7SGJzt1NoZyX
0ZEdlxCb445/gk3WGVgAHfYaiDMWXvWT0GRs0MWRf5MIzrK5FDvmrCBS1G4F8SeU
DYe26xCq/VSjMyt4pToIzF+a+JEaKQT3NzxN5GJ7XyCpqG5a24objqAHcPFkh8Si
0IaHHMyxPaAnilk3ygPn7FsddwPnffjLVGzMfdFttIUYxiRFq1soQSTdskGf0Zv8
HN+IVfba05QVAj3vWOF6rL3YV0vVSBEIFXAZHOSqHdItuG0aHtfJsbBYb0jybpmO
sHDvgxaaEf/8wHRQeh1yKv6s4yHuRJiaBbGs1D7Emrpy2/3VRPxOnRNQ8EnnU8HG
eBAJg0EXTGHorc84ys32G2N1wcf3Pl6PmP/TF06EoM46BEQyj7g=
=aR3O
-END PGP SIGNATURE-