From owner-freebsd-ports@freebsd.org Tue Aug 9 12:26:27 2016 Return-Path: Delivered-To: freebsd-ports@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 700EABB20E0 for ; Tue, 9 Aug 2016 12:26:27 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 353DE1DFF for ; Tue, 9 Aug 2016 12:26:26 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id BB8B728426 for ; Tue, 9 Aug 2016 14:17:48 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C279D28411 for ; Tue, 9 Aug 2016 14:17:47 +0200 (CEST) Message-ID: <57A9C9EB.3000800@quip.cz> Date: Tue, 09 Aug 2016 14:17:47 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: security/amavisd-new start command not working with full path to rc script Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 12:26:27 -0000 "service amavisd start" is working fine (from commandline and crontab too) But if it is called with full path to rc script it silently fails. root@pablo ~/# /usr/local/etc/rc.d/amavisd restart Stopping amavisd. Waiting for PIDS: 96231. Starting amavisd. Aug 9 13:27:16 pablo amavis[96231] Net::Server: 2016/08/09-13:27:16 Server closing! Aug 9 13:27:17 pablo amavis[96444] starting. /usr/local/sbin/amavisd at pablo.breakpoint.cz amavisd-new-2.10.1 (20141 025), Unicode aware Aug 9 13:27:17 pablo amavis[96444] perl=5.020003, user=, EUID: 110 (110); group=, EGID: 110 110 (110 110) Aug 9 13:27:17 pablo amavis[96444] SpamControl: init_pre_chroot on SpamAssassin done Aug 9 13:27:17 pablo amavis[96445] Net::Server: Process Backgrounded Aug 9 13:27:17 pablo amavis[96445] Net::Server: 2016/08/09-13:27:17 Amavis (type Net::Server::PreForkSimple) starting ! pid(96445) Aug 9 13:27:17 pablo amavis[96445] (!)Net::Server: 2016/08/09-13:27:17 Unable to load module for proto "Net::Server:: Proto::UNIX": Can't locate Net/Server/Proto/UNIX.pm: Permission denied at /usr/local/lib/perl5/site_perl/Net/Server/ Proto.pm line 198.\n\n at line 198 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm Aug 9 13:27:17 pablo amavis[96445] Net::Server: 2016/08/09-13:27:17 Server closing! It is on FreeBSD 10.3-RELEASE amd64 GENERIC Does anybody know why it says "Permission denied" and "Can't locate Net/Server/Proto/UNIX.pm"? The file is there -rw-r--r-- 1 root wheel 5323 May 5 2014 /usr/local/lib/perl5/site_perl/Net/Server/Proto/UNIX.pm I see this problem only on one of all our mailservers. All was installed and configured the same way so I can't find a difference. Miroslav Lachman