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

    How to restart WebGUI

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 13.1k 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
      dvserg
      last edited by

      Hello
      Any body know how to correctly restart WebGUI from php?
      I found this

      
          flush();
          send_event("service restart webgui");
      
      

      But nothing to work.
      Any ideas ?

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Well, this is what's in 2.1

        cat /etc/rc.restart_webgui

        
        #!/usr/local/bin/php -f
        
        require("config.inc");
        require("functions.inc");
        require("shaper.inc");
        require("captiveportal.inc");
        require("rrd.inc");
        
        echo "Restarting webConfigurator...";
        
        sigkillbyname("lighttpd", "KILL");
        
        while (is_process_running("lighttpd")) {
                echo '.';
                sleep(1);
        }
        
        system_webgui_start();
        
        captiveportal_init_webgui();
        
        enable_rrd_graphing();
        
        echo " done.\n\n";
        
        ?>
        
        
        1 Reply Last reply Reply Quote 1
        • D
          dvserg
          last edited by

          Wow, thanks!

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

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