This could just be a simple permissions error (I'm not familiar with SSH permissions) but I can't get the zope memory watchdog script to run. To give you the background - I've created a new zope instance [version Zope (2.12.11) - Plone (4.0.1)] in a new shared server and I'm trying to create the zope memory watchdog for this instance. I followed the instructions on the old forum - http://forum.webfaction.com/viewtopic.php?id=1463 -
changing the username, RAM value, and path to the restart script (as this seems to have changed location in this newer version of zope) which I think is now found at
I then tried to run the new script from the SSH root
but this generated a permissions error.
getfacl told me that this script had no execute rights applied
So I tried :
which getfacl told me had given my username rwx permissions
However when I attempt to run the script I get the same permissions error???
Does anyone know what's going wrong here? Thanks in advance for your help... Ian. asked 07 Jan '11, 09:49 urbanian |
(Here is the original Zope Memory Watchdog post from the old forum, since it is no longer online:) Here's a simple shell script I use to keep tabs on my Zope's memory usage: Code:
It does the following:
I've got it saved as ~/bin/zopewatch, and scheduled to run every 5 minutes with the following cron job: Code:
I know not everyone would want their Zope restarting automatically, but mine is just a personal site, and running like this ensures that I'll never receive a high memory warning from WebFaction. You could use this for any long running app, not just Zope - just change the line that restarts Zope to whatever you need (call another script, fire off an email, whatever). answered 23 Apr '13, 15:15 likebike |