• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Package updates don't restart services

Scheduled Pinned Locked Moved pfSense Packages
5 Posts 4 Posters 1.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    pyrodex
    last edited by Mar 30, 2022, 9:48 PM

    Is this expected behavior that when updating packages they don't restart the service?

    I've had a few pfblockerNG and now haproxy today that required me each and every time to restart the services after the upgrade. Shouldn't this be part of the upgrade process?

    1 Reply Last reply Reply Quote 0
    • B
      bmeeks
      last edited by bmeeks Mar 30, 2022, 11:00 PM Mar 30, 2022, 10:58 PM

      This is left up to the individual packages. Packages can use a pre-uninstall and/or a post-install hook to do things during package installation. What happens is up to the package creator/maintainer. The "hook" is simply a PHP function in your package code that you register with pfSense in the package manifest file.

      I maintain the Snort and Suricata IDS/IPS packages, and I use both of those hooks to stop the service when removing/updating and then restart it when finished with the update or install.

      N 1 Reply Last reply Mar 31, 2022, 3:54 AM Reply Quote 0
      • N
        netblues @bmeeks
        last edited by Mar 31, 2022, 3:54 AM

        Lately pfblockerng stops unbound on update and never restart it, which is even more annoying if one doesn't notice.

        (usualy being alerted by panic "no internet" calls.)

        G 1 Reply Last reply Mar 31, 2022, 7:46 AM Reply Quote 0
        • G
          Gertjan @netblues
          last edited by Gertjan Mar 31, 2022, 7:51 AM Mar 31, 2022, 7:46 AM

          @netblues

          Yep, for the last year, or more, this is what I see also, and, this is known on the forum, as it is mentioned several times.
          The author posted about it, see here.

          More recent, pfBlockerNG needs a full reload - the yellow icon on the dashboard, pfBlocker Widget, tells us to do so, after upgrading,
          This will take care of an unbound start also.
          I know, this is not a solution, unbound, the DNS of your entire network, shouldn't be left in a stopped state after upgrading.
          Some responsibility of the admin is now engaged ;)

          Btw : it's easy to patch the installer helper instruction script of pfBlockerNG-devel so it (re)starts unbound after upgrading. The thing is, this file is part of the package and will get overwritten with the new package when upgrading. Only BB can solve the issue.

          Also, I don't have the impression the unbound is in the defunct state (the process is still in memory but doesn't react any more). It's just stopped.
          If I remember ;) I have a look at the state when the next version comes out.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 1
          • P
            pyrodex
            last edited by Mar 31, 2022, 1:37 PM

            Thanks all for the explanation!

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received