<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
John,<br>
<br>
Sadly I don't think there's any way for logrotate to be able to
execute code in order to work out the location of the log files it
needs to rotate. An easy alternative solution would just be<br>
ln -sn /var/zendto-storage/zendto /var/zendto<br>
Then any references to /var/zendto which I can't fix automatically
(of which the logrotate.d file is a fine example) will still work.<br>
<br>
But yes, your change to /etc/logrotate.d/zendto should survive
updates.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 11/04/2019 10:45 pm, John Thurston
via ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!101ac07959aca9e5c98376e488d62d12c0b1e53eae67123ccf614c655e7094ae6e6a2570c5ea97c93a461013e15fb4e8!@mx.jul.es">I'm
not exactly sure when this problem started, but the log rotation
process is failing.
<br>
<br>
The file:
<br>
/etc/logrotate.d/zendto
<br>
references the files:
<br>
/var/log/zendto/zendto.log
<br>
/var/zendto/zendto.log
<br>
<br>
But that isn't where my logs are. My config in:
<br>
preferences.php
<br>
has the following:
<br>
define('NSSDROPBOX_DATA_DIR','/var/zendto-storage/zendto/');
<br>
<br>
<br>
I can go edit /etc/logrotate.d/zendto and hope it persists through
the next update.
<br>
<br>
Is there some other way I should correct this?
<br>
<br>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'The best and most beautiful things in life cannot be seen or even
touched; they must be felt with the heart.' - Helen Keller
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>