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/[email protected]                                        
                                  
***
[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  libc6                2.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  <none>

- -- 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-----

Reply via email to