Debugging periodic scripts

Alexander Leidinger Alexander at Leidinger.net
Sat Mar 24 16:32:54 UTC 2012


On Fri, 23 Mar 2012 04:08:47 -0700 Jeremy Chadwick
<freebsd at jdc.parodius.com> wrote:

> Editing /etc/periodic/security/510.ipfdenied's hashbang line to use -x
> doesn't change the behaviour either (maybe stderr gets sent to
> /dev/null?), whether I run it by hand as a script or via "periodic
> security".

Use "set -x" instead of modifying the first line (I assume the script
is already started with the correct shell, so the first line is
ignored). I would also add "env" before and after the sourcing of the
periodic.conf to see what is defined or not.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-stable mailing list