<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
John,<br>
<br>
<div class="moz-cite-prefix">On Tue 08/12/20 20:28, John Thurston
via ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!2493d8b453cae178119cb77871182929940331258d0f674161215b8ffa590796097f0452167079ef71b67f658f9dc56b!@mx.jul.es"><br>
On 12/3/2020 2:52 AM, Jules wrote:
<br>
<blockquote type="cite">
<blockquote type="cite">1) I see a reference in the preferences:
<br>
<br>
// This is where your drop-offs are stored.
<br>
// It must be on the same filesystem as
/var/zendto/incoming, and
<br>
// on preferably on the same filesystem as /var/zendto.
<br>
'dropboxDirectory' => NSSDROPBOX_DATA_DIR."dropoffs",
<br>
<br>
Why the "same filesystem" requirement for 'incoming' and
'dropoffs'?
<br>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">Because it basically does a "mv" from the
incoming directory to the dropoffs directory.
<br>
If they are on the same filesystem, that is an instant atomic
operation.
<br>
If they aren't, that could take minutes, where the user will
just be left waiting and wondering why his upload got to 100%
and then just sat there!
<br>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">
<br>
2) The lines above define 'dropoffs'. Where is 'incoming'
defined?
<br>
</blockquote>
php.ini. It's the temporary upload location that PHP uses.
<br>
</blockquote>
<br>
Found it, thank you.
<br>
<br>
Why isn't this defined in preferences (with the rest)?
<br>
</blockquote>
Historical, that's all. At that point I probably didn't know about
ini_set(). :-)<br>
<br>
<blockquote type="cite"
cite="mid:WM!2493d8b453cae178119cb77871182929940331258d0f674161215b8ffa590796097f0452167079ef71b67f658f9dc56b!@mx.jul.es"><br>
It could be explicitly listed, or relative to NSSDROPBOX_DATA_DIR
(especially considering we'd like all that stuff to be in a common
file system).
<br>
</blockquote>
Yet it should.<br>
Right now I have an important bug fix to get out the door (I really
must remember to create git branches occasionally), but this will
definitely get added to the list.<br>
<br>
<blockquote type="cite"
cite="mid:WM!2493d8b453cae178119cb77871182929940331258d0f674161215b8ffa590796097f0452167079ef71b67f658f9dc56b!@mx.jul.es">By
tweaking php.ini, and the path in the scavenging cron job, have I
set myself up for complications in the next ZendTo version-update?
<br>
</blockquote>
You shouldn't have, no. It won't overwrite the cron job as you've
changed it, and ZendTo never touches php.ini again after the
Installer has done its bit.<br>
<br>
Which also reminds me that I need to improve the Installer. Pretty
much all distros now have a /etc/php.d directory of some sort
somewhere, so I can just put all the ZendTo settings in a new file
in there, and not need to touch the main php.ini file at all.<br>
<br>
1 change I am definitely going to make right now though, is to
change the yum/rpm upgrade behaviour so that modified *.tpl template
files are moved out of the way and the new ones become active.<br>
I get too many queries from people who slightly tweaked one of the
template files, and after they upgrade they can't understand why it
breaks.<br>
<br>
I won't overwrite their tweaked file, but I will now move it to
*.rpmsave and put the new one in place. They will then immediately
see a ZendTo service that works, but is just missing the odd bit of
customisation they did.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<blockquote type="cite"
cite="mid:WM!2493d8b453cae178119cb77871182929940331258d0f674161215b8ffa590796097f0452167079ef71b67f658f9dc56b!@mx.jul.es"><br>
<br>
--
<br>
Do things because you should, not just because you can.
<br>
<br>
John Thurston 907-465-8591
<br>
<a class="moz-txt-link-abbreviated" href="mailto:John.Thurston@alaska.gov">John.Thurston@alaska.gov</a>
<br>
Department of Administration
<br>
State of Alaska
<br>
<br>
_______________________________________________
<br>
ZendTo mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<br>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Find a place inside where there's joy, and the joy will burn out
the pain.' - Joseph Campbell
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>