"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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to