[hipl-dev] Re: [Bug 795848] Re: starting of daemons from binary packages when they are down

  • From: David Martin <795848@xxxxxxxxxxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Tue, 21 Jun 2011 15:24:19 -0000

Hi,

On Tue, Jun 21, 2011 at 4:11 PM, Miika Komu <795848@xxxxxxxxxxxxxxxxxx> wrote:
> What about removing the -t flag from firewall init.d scripts (both
> Fedora and Debian, possibly OpenWRT)? Since this it what the warning is
> telling us:
>
> Warning: timeouts (-t) have no effect with connection
>         tracking disabled (-F)

We are not using the -t option. The condition for printing the warning
is wrong in the firewall code. It simply checks whether the timeout is
greater than zero which it is by default. I've committed a fix in
trunk revision 5971. It should be working as it is supposed to now.

David

-- 
You received this bug notification because you are a member of HIPL core
team, which is subscribed to HIPL.
https://bugs.launchpad.net/bugs/795848

Title:
  starting of daemons from binary packages when they are down

Status in Host Identity Protocol for Linux:
  Fix Committed

Bug description:
  It appears that the init.d scripts don't work anymore as they used to.
  When a daemon is down, a package upgrade fails:

  Preparing to replace hipl-dnsproxy 1.0.6-2 (using 
.../hipl-dnsproxy_1.0.6-5964_amd64.deb) ...
   * Stopping DNS proxy for HIP hipdnsproxy
     ...fail!
  invoke-rc.d: initscript hipl-dnsproxy, action "stop" failed.
  dpkg: warning: old pre-removal script returned error exit status 1
  dpkg - trying script from the new package instead ...
   * Stopping DNS proxy for HIP hipdnsproxy
     ...fail!
  invoke-rc.d: initscript hipl-dnsproxy, action "stop" failed.
  dpkg: error processing 
/var/cache/apt/archives/hipl-dnsproxy_1.0.6-5964_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 1
   * Starting DNS proxy for HIP hipdnsproxy
     ...done.
  Preparing to replace hipl-firewall 1.0.6-2 (using 
.../hipl-firewall_1.0.6-5964_amd64.deb) ...
   * Stopping HIP firewall hipfw
  invoke-rc.d: initscript hipl-firewall, action "stop" failed.
  dpkg: warning: old pre-removal script returned error exit status 2
  dpkg - trying script from the new package instead ...
   * Stopping HIP firewall hipfw
  invoke-rc.d: initscript hipl-firewall, action "stop" failed.
  dpkg: error processing 
/var/cache/apt/archives/hipl-firewall_1.0.6-5964_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 2
   * Starting HIP firewall hipfw
  Warning: timeouts (-t) have no effect with connection
           tracking disabled (-F)
     ...done.

  Upgrading the package when the daemon is up and running succeeds, but
  nevertheless even this case should be working (as it used to be).
  Please note also the warning about the firewall (somebody changed the
  flags?).

To manage notifications about this bug go to:
https://bugs.launchpad.net/hipl/+bug/795848/+subscriptions

Other related posts: