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

    VHosts - no service status even running in background

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 2 Posters 3.0k 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.
    • A
      axscode
      last edited by

      I did try some workaround though i assume that core scripts of pfsense is out of league of contrib package.

      status_services.php

      @line 356        else if ($service['name'] == "captiveportal")
                              $running = is_pid_running("{$g['varrun_path']}/lighty-CaptivePortal.pid");
      +                else if ($service['name'] == "vhosts-http")
      +                        $running = is_pid_running("{$g['varrun_path']}/vhosts-http.pid");
                      else
                              $running = is_service_running($service['name']);

      Regards

      1 Reply Last reply Reply Quote 0
      • A
        axscode
        last edited by

        /usr/local/www/widgets/widgets(25): diff services_status.widget.php services_status.widget.php.orig
        199,200d198
        <                else if ($service['name'] == "vhosts-http")
        <                        $running = is_pid_running("{$g['varrun_path']}/vhosts-http.pid");

        /usr/local/www(26): diff status_services.php status_services.php.orig
        357,358d356
        <                else if ($service['name'] == "vhosts-http")
        <                        $running = is_pid_running("{$g['varrun_path']}/vhosts-http.pid");

        Regards

        1 Reply Last reply Reply Quote 0
        • A
          axscode
          last edited by

          any thoughts?

          Regards

          1 Reply Last reply Reply Quote 0
          • G
            geckox
            last edited by

            Is there a plan to commit this change? It seems to work very well, but I find it annoying that I have to re-apply it every time I upgrade the snapshot. If I don't apply this change, vhosts still always is shown as not running in pfSense webGUI, even though ps does report it as running.

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