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

    Package updates don't restart services

    pfSense Packages
    4
    5
    1.7k
    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

      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
      • bmeeksB
        bmeeks
        last edited by bmeeks

        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 Reply Quote 0
        • N
          netblues @bmeeks
          last edited by

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

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @netblues
            last edited by Gertjan

            @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

              Thanks all for the explanation!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.