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

Vhosts-http - service status not updated when running

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
4 Posts 2 Posters 2.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.
  • C
    clart
    last edited by Apr 26, 2013, 4:27 AM

    vhosts-http service always shown as not running in pfSense webGUI, even when it actually is running.

    in /etc/inc/service-utils.inc:  function get_service_status($service)
    there seems to be missing this case statement:

    case "vhosts-http":
                            $running = is_pid_running("{$g['varrun_path']}/vhosts-http.pid");
                            break;

    inserting the above 3 lines at line 409 fixes the problem.
    unfortunately, the file gets overwritten on every snapshot update and the edit has to be put back.

    1 Reply Last reply Reply Quote 0
    • E
      eri--
      last edited by Apr 26, 2013, 7:24 AM

      Pushed the commit.

      1 Reply Last reply Reply Quote 0
      • C
        clart
        last edited by Apr 26, 2013, 8:33 PM

        thanks, I look out for it in snapshots.

        1 Reply Last reply Reply Quote 0
        • C
          clart
          last edited by May 1, 2013, 10:20 PM

          I see it now in snapshot and it works, but there is another problem;

          After installing latest snapshot and reboot, Status: services still shows vhosts as stopped, but actually it is running;

          [2.1-BETA1][root@pfsense.localdomain]/root(14): ps -ax | grep vhost
          97972  ??  SN    0:00.07 /usr/local/sbin/lighttpd -f /var/etc/vhosts-http.conf
          26964  0  S+    0:00.00 grep vhost
          [2.1-BETA1][root@pfsense.localdomain]/root(15): ls -l /var/run/vh*
          -rw-r–r--  1 root  wheel  0 May  1 22:39 /var/run/vhosts-http.pid
          [2.1-BETA1][root@pfsense.localdomain]/root(16):

          the /var/run/vhosts-http.pid file is empty.
          if I put the PID "97972" into that file, then check the Status: services, it now shows running.

          The problem appears that the PID is not being saved into the PID file upon startup.

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