security/amavisd-new start command not working with full path to rc script

Miroslav Lachman 000.fbsd at quip.cz
Tue Aug 9 12:26:27 UTC 2016


"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 at 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


More information about the freebsd-ports mailing list