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

Change in startup script - Fixes many filter reloads from squid.

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
3 Posts 1 Posters 1.3k 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.
  • P
    podilarius
    last edited by Jul 21, 2012, 3:20 PM Jul 21, 2012, 3:18 PM

    Hello Guys,
    I was starting to wonder why i had some many processes open and why my filter kept getting reloaded. Turns out a script is now wrong for squid.
    In : /usr/local/etc/rc.d/proxy_monitor.sh
    There are 2 lines of these:

    
    NUM_PROCS=`ps auxw | grep "[s]quid -D"|awk '{print $2}'| wc -l | awk '{ print $1 }'`
    
    that needs to change to :
    [code]
    NUM_PROCS=`ps auxw | grep "[s]quid -f"|awk '{print $2}'| wc -l | awk '{ print $1 }'`
    
    The "-D" option is not used and is obsolete. Can one of the devs please review and change the file if necessary?
    I am using :
    2.1-BETA0 (i386) 
    built on Fri Jul 20 01:30:00 EDT 2012 
    With latest squid3.
    
    Thanks,
    Podilarius.[/s][/code][/s]
    
    1 Reply Last reply Reply Quote 0
    • P
      podilarius
      last edited by Jul 21, 2012, 3:21 PM

      Also, with the change, it still starts up 3 times!

      ps axw |grep proxy
      10496  ??  R      0:00.01 sh -c ps axw |grep proxy 2>&1
      10610  ??  IN     0:00.01 /bin/sh /usr/local/etc/rc.d/proxy_monitor.sh start
      10967  ??  R      0:00.00 grep proxy
      14969  ??  IN     0:00.01 /bin/sh /usr/local/etc/rc.d/proxy_monitor.sh start
       4221  v0- I      0:00.02 /bin/sh /usr/local/etc/rc.d/proxy_monitor.sh start
      
      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by Jul 23, 2012, 2:39 AM

        Thank you for commit:

        https://github.com/bsdperimeter/pfsense-packages/commit/1a1124da89e8832cd4fb7ce0ba01d06d96971362

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