[Server-devel] [PATCH] Introducing ds_backup.sh - a lightweight wrapper.

Martin Langhoff martin.langhoff at gmail.com
Wed Jun 18 14:06:50 EDT 2008


On Tue, Jun 17, 2008 at 3:25 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>>> Why not use /var/lock like everybody else? We can add appropriate users
>>> to the lock group if needed. (Or however Fedora does these things.) Are
>>> we better off making ~/.sugar/default contain our complete parallel
>>> FHS?
>>
>> I suggested /var/lock too, but I'm following Tomeu's hints here
>> http://lists.laptop.org/pipermail/devel/2008-May/014440.html
>
> Better listen to Michael rather than me about systems programming ;)

After a bit of review of this -- with the intetion to move the lock
that ds-backup uses from a newfangled .sugar/default/lock to /var/lock
-- I don't think it's a good idea. Reasons:

 - /var/lock is for root only. We can add /var/lock/sugar but this
will only work for single-user systems - we are moving towards more
portability, this includes linuxen where multiple users (even if not
concurrent - ie ubuntu on my laptop). So who can write to
/var/lock/sugar and how do we keep separate dirs for each user becomes
a maintenance problem.

 - It adds complexity to ds-backup (at least create and chown dir to a
_hardcoded user acct_ in post-inst of the rpm) while adding nothing
for end users.

cheers,



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff



More information about the Devel mailing list