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

[FIXED] Service Watchdog - cannot detect DHCPv6 relay status

Scheduled Pinned Locked Moved pfSense Packages
6 Posts 2 Posters 1.8k 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.
  • D
    doktornotor Banned
    last edited by Aug 28, 2013, 2:10 PM Aug 28, 2013, 10:00 AM

    Thanks for this new package. There's a small issue with dhcrelay6 service, it never gets detected as running, so the cron keeps restarting it.  :) Presumably since is_service_running() eventually boils down to the default is_process_running() which expects dhcrelay6 process and does exec pgrep -anx dhcrelay6 to check, while the process name is just dhcrelay.

    Same issue might exist for other services special-cased in get_service_status() in service-utils.inc, such as vhosts-http or captiveportal.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Aug 28, 2013, 12:13 PM

      If that is the case, it's probably also broken on the Status > Services page, is it not?

      I don't have any systems with dhcrelay6 active to test against at the moment, I'll have to try it out.

      (The package is very new, I planned on starting a forum thread for discussing it last night after I checked it in, but then ended up just going to sleep instead)

      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by Aug 28, 2013, 12:22 PM Aug 28, 2013, 12:19 PM

        @jimp:

        If that is the case, it's probably also broken on the Status > Services page, is it not?

        Nope, it works there… (after some patches a couple weeks ago, before those it wasn't shown at all.)

        https://github.com/pfsense/pfsense/commit/4701c8de28e7cb6c1f06cfbd4500631e574d012a
        https://github.com/pfsense/pfsense/commit/9590e0de97bef964f16117f0094db24406754b64

        However, AFAICT it uses the special-cased custom code there, i.e.,

        $running = is_pid_running("{$g['varrun_path']}/dhcrelay6.pid");
        

        instead of is_service_running()

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Aug 28, 2013, 12:49 PM

          ok, fix is coming in a few minutes after some more testing.

          Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Aug 28, 2013, 1:14 PM

            Also, as you have seen but in case others see this thread first, the new "official" thread for the package is here:
            http://forum.pfsense.org/index.php/topic,65933.0.html

            Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by Aug 28, 2013, 2:10 PM

              All good now, thanks!

              (Will post other issues to the new thread  if required.)

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