Hi Louis, That makes sense, but in practice I get errors when running this on a server that hasn’t had packetfence installed as there are calls to log4perl.pm files in the database-clearner.pl script.
Out of interest, what’s the danger of running this script from a packetfence server against a remote db server? Is it likely to cause an issue? Cheers, Andi From: Louis Munro [mailto:lmu...@inverse.ca] Sent: 28 September 2016 14:26 To: packetfence-users@lists.sourceforge.net Subject: Re: [PacketFence-users] maintenance script with remote database Hi Andi, The script will run but not backup the database if it's not running locally. That is what the check for the `hostname`.pid does. It will only backup the PF files that are present locally in that case. I suggest you run that script on the database server itself. The script does not send an email on it's own. Cron may send one, depending on how it's configured. Makes sense? On Sep 27, 2016, at 9:14 AM, Morris, Andi <amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote: Hi, An update to this. It does seem to work well if the packetfence server is also running the mariadb service. Mine wasn’t as there’s no need for it if the database is on a remote server. Starting it meant that I could run the maintenance job and see the backups being created, aswell as the optimisation being run. Would you like me to log this as an issue on github? On a related note, I can see that issue 1415 https://github.com/inverse-inc/packetfence/issues/1415 mentions an email that is generated when this script is run. I’ve never had that email. Is it something that should be sent to the user designated for PF alerts? If not, is there scope for this to be added as an option? Cheers, Andi Regards, -- Louis Munro lmu...@inverse.ca<mailto:lmu...@inverse.ca> :: www.inverse.ca<http://www.inverse.ca> +1.514.447.4918 x125 :: +1 (866) 353-6153 x125 Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and PacketFence (www.packetfence.org<http://www.packetfence.org>)
------------------------------------------------------------------------------
_______________________________________________ PacketFence-users mailing list PacketFence-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-users