Date: Tue, 09 Aug 2016 14:17:47 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: freebsd-ports@freebsd.org Subject: security/amavisd-new start command not working with full path to rc script Message-ID: <57A9C9EB.3000800@quip.cz>
next in thread | raw e-mail | index | archive | help
"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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57A9C9EB.3000800>