[tahoe-dev] Have some startup and maintenance facilities

Kevin Reid kpreid at switchb.org
Thu Mar 29 02:33:23 UTC 2012


On Mar 28, 2012, at 22:06, Brian Warner wrote:
> On 3/28/12 6:13 PM, Kevin Reid wrote:
> 
>> LaunchDaemon. A LaunchAgent is per GUI-login session, a LaunchDaemon
>> is global. This goes in
>> /Library/LaunchDaemons/org.tahoe-lafs.tahoe.plist (or other
>> appropriate reverse-DNS identifier, with matching Label value):
> 
> OMG awesome! Thanks, I've been trying to find out where that should go
> and what it should contain for years!
> 
> Now what we need is a Mac installer (or an .app that installs this the
> first time you run it) to lower the energy barrier of finding this text,
> copying it into a file, moving it to the right place, failing, sudo
> moving it into the right place, rebooting,

No reboot.

sudo launchctl load /Library/LaunchDaemons/org.tahoe-lafs.tahoe.plist

That said, yes, installer good.

>> Don't know what's wrong with cron jobs. crontab -e, add a line, done.
>> 
>> 30	 2	*	*	*	~/bin/tahoe-repair-all
> 
> Mostly, yeah, but:
> 
> * overlap/locking: various bugs/errors could cause the repair to stall
>  or go really slowly, and if it takes >24h and you get multiple
>  overlapping copies then things get weird (and gets worse if it happens
>  multiple times)

Ah, my perspective - I have no large collections of files, so the notion of a repair taking over a day seems absurdly distant. Similarly the concerns of partial coverage or network resources occupied.

> But overall, yes, tools like this would be great to have built-in
> somehow.

Well, a place to start would be including the ones I just provided in the repository/distribution.

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>




More information about the tahoe-dev mailing list