From owner-freebsd-questions@freebsd.org Thu Mar 17 16:21:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C838BAD3739 for ; Thu, 17 Mar 2016 16:21:07 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id 8F1F4B1E for ; Thu, 17 Mar 2016 16:21:07 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id 9B937889C621 for ; Thu, 17 Mar 2016 12:21:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1458231664; bh=wIDNTGeIF/Q1KqMmTkj6UIuRJ0ZSuyA3LoLLneotCvE=; h=Subject:To:References:From:Date:In-Reply-To:From; b=BxFPEUN5NUyF5jfQZSaK9VHT+GD+aNKD77vCahl2m2T5RKDVw4OUCjxFVou6mCm1Q jDctC1rg8EnMTB9ckukX/nQtZLVhnwJ2EWZRC42TI6J1Jf002Dlx7MuPHaT0GmkjpB 6kdU0zpo3FOVGCg7mv69K0/jgLqE7gSdrvcutxsN4jaHF6mQ2EqGOSd2K7I6RQCQZK gNxQL/bLMpPGoHFh1t1z67zHkTbnYA0jinYriEDSxC27m2L72TkUxXBxAvSL/l4IIf beJfatP2z6/ctwipmFUGFUkiKzzR/dXT5l630St7KRFPtU3CvfuUdeE9bjGS2bkeUb gSikEO1yC88Sw== Subject: Re: c-icap exists without notice [SOLVED] To: freebsd-questions@freebsd.org References: <56EAD246.7090009@shopzeus.com> From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Message-ID: <56EAD972.8050403@shopzeus.com> Date: Thu, 17 Mar 2016 17:21:06 +0100 MIME-Version: 1.0 In-Reply-To: <56EAD246.7090009@shopzeus.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 16:21:07 -0000 > I have installed the c-icap server port and squidclamav. When I try to > start it in foreground+debug mode, the following happens: Starting with "c-icap -N -D -d 10" options: Setting parameter :-d=10 Searching 0x61d8d8 for default value Setting parameter :PidFile=/var/run/c-icap/c-icap.pid Searching 0x61d8e0 for default value Setting parameter :CommandsSocket=/var/run/c-icap/c-icap.ctl Searching 0x61d948 for default value Setting parameter :Timeout=300 Searching 0x61d950 for default value Setting parameter :MaxKeepAliveRequests=100 Searching 0x61d94c for default value Setting parameter :KeepAliveTimeout=600 Searching 0x61d930 for default value Setting parameter :StartServers=3 Searching 0x61d934 for default value Setting parameter :MaxServers=10 Searching 0x61d93c for default value Setting parameter :MinSpareThreads=10 Searching 0x61d940 for default value Setting parameter :MaxSpareThreads=20 Searching 0x61d938 for default value Setting parameter :ThreadsPerChild=10 Searching 0x61f7d0 for default value Setting parameter :MaxRequestsPerChild=0 Searching 0x61d8c8 for default value Setting parameter :Port=1344 Searching 0x61d8e8 for default value Setting parameter :User=c_icap Searching 0x61d8f0 for default value Setting parameter :Group=c_icap Searching 0x61d920 for default value Setting parameter :ServerAdmin=gandalf@mess.hu Searching 0x61d928 for default value Setting parameter :ServerName=gw.visznet Searching 0x61d8d0 for default value Setting parameter :TmpDir=/var/tmp Searching 0x61f610 for default value Setting parameter :MaxMemObject=131072 Searching 0x61d960 for default value Setting parameter :Pipelining=1 Searching 0x61f7e0 for default value Setting parameter :SupportBuggyClients=0 Searching 0x61d918 for default value Setting parameter :ModulesDir=/usr/local/lib/c_icap Searching 0x61d910 for default value Setting parameter :ServicesDir=/usr/local/lib/c_icap Searching 0x800a671e0 for default value Setting parameter :TemplateDir=/usr/local/share/c_icap/templates/ Searching 0x800a67130 for default value Setting parameter :TemplateDefaultLanguage=en The db file /usr/local/etc/c-icap/c-icap.magic is the same as default. Ignoring... Searching 0x61f808 for default value Setting parameter :RemoteProxyUsers=0 Searching 0x61e0c8 for default value Setting parameter :RemoteProxyUserHeader=X-Authenticated-User Searching 0x61e0d0 for default value Setting parameter :RemoteProxyUserHeaderEncoded=1 Adding to acl localhost the data 127.0.0.1/255.255.255.255 In search specs list 0x0,name localhost New ACL with name:localhost and ACL Type: src Adding to acl ALLREQUESTS the data REQMOD In search specs list 0x801c164c0,name ALLREQUESTS Checking name:ALLREQUESTS with specname localhost Adding to acl ALLREQUESTS the data RESPMOD In search specs list 0x801c164c0,name ALLREQUESTS Checking name:ALLREQUESTS with specname localhost Checking name:ALLREQUESTS with specname ALLREQUESTS Adding to acl ALLREQUESTS the data OPTIONS In search specs list 0x801c164c0,name ALLREQUESTS Checking name:ALLREQUESTS with specname localhost Checking name:ALLREQUESTS with specname ALLREQUESTS New ACL with name:ALLREQUESTS and ACL Type: type Creating new access entry as allow with specs: In search specs list 0x801c164c0,name localhost Checking name:localhost with specname localhost In search specs list 0x801c164c0,name localhost Checking name:localhost with specname localhost Adding acl spec: localhost In search specs list 0x801c164c0,name ALLREQUESTS Checking name:ALLREQUESTS with specname localhost Checking name:ALLREQUESTS with specname ALLREQUESTS In search specs list 0x801c164c0,name ALLREQUESTS Checking name:ALLREQUESTS with specname localhost Checking name:ALLREQUESTS with specname ALLREQUESTS Adding acl spec: ALLREQUESTS Creating new access entry as deny with specs: In search specs list 0x801c164c0,name all Checking name:all with specname localhost Checking name:all with specname ALLREQUESTS In search specs list 0x801c164c0,name all Checking name:all with specname localhost Checking name:all with specname ALLREQUESTS The acl spec all does not exists! Adding acl spec: all Searching 0x61e2a8 for default value Setting parameter :ServerLog=/var/log/c-icap/server.log Adding the access logfile /var/log/c-icap/access.log Loading service :echo_service path srv_echo.so Found handler C_handler for service with extension:.so Initialization of echo module...... Registering conf table:echo Registering conf table:echo_service Loading service :squidclamav path squidclamav.so Found handler C_handler for service with extension:.so squidclamav.c(183) squidclamav_init_service: DEBUG Going to initialize squidclamav squidclamav.c(708) set_istag: DEBUG setting istag to -1-squidclamav-10 Command squidclamav:cfgreload registered LOG Reading configuration from /usr/local/etc/c-icap//squidclamav.conf LOG Reading directive maxsize with value 5000000 LOG Reading directive clamd_local with value /var/run/clamav/clamd.sock LOG Reading directive timeout with value 1 LOG Reading directive logredir with value 0 LOG Reading directive dnslookup with value 1 LOG Reading directive safebrowsing with value 0 Registering conf table:squidclamav Warning, alias is the same as service_name, not adding My hostname is:gw.visznet Command relog registered c-icap server already running! Basically, it says it is already running. I have checked, and it does indeed: root@gw:/usr/local/etc/c-icap # ps axw | grep icap 24420 - Ss 0:00.01 /usr/local/bin/c-icap -f /usr/local/etc/c-icap/c-icap.conf -D 24421 - I 0:00.01 /usr/local/bin/c-icap -f /usr/local/etc/c-icap/c-icap.conf -D 24422 - I 0:00.01 /usr/local/bin/c-icap -f /usr/local/etc/c-icap/c-icap.conf -D 24423 - I 0:00.01 /usr/local/bin/c-icap -f /usr/local/etc/c-icap/c-icap.conf -D After I have tested this, suddenly the status, stop and start commands started to work! root@gw:/usr/local/etc/c-icap # /usr/local/etc/rc.d/c-icap stop Stopping c_icap. Waiting for PIDS: 24420. root@gw:/usr/local/etc/c-icap # /usr/local/etc/rc.d/c-icap stop c_icap not running? (check /var/run/c-icap/c-icap.pid). root@gw:/usr/local/etc/c-icap # /usr/local/etc/rc.d/c-icap start Starting c_icap. root@gw:/usr/local/etc/c-icap # /usr/local/etc/rc.d/c-icap status c_icap is running as pid 25081. I have no idea what happened, but the problem is gone.