[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS (take 2): libbash

In <cfb54190905121302h695d3eb6t61f08bb9294fea2e@mail.gmail.com>, Hai Zaar 
>On Tue, May 12, 2009 at 11:00 PM, Patrick Matthäi <pmatthaei@debian.org> 
>> Hai Zaar schrieb:
>>> On Tue, May 12, 2009 at 10:55 PM, Patrick Matthäi
>>> <pmatthaei@debian.org>
>>> wrote:
>>>>> Well... does it mean I'll have to create /var/log/dirlocks during
>>>>> boot process? If yes, is there any service in Debian that can create
>>>>> requested files/dirs on boot? (Please do not tell me that I need to
>>>>> write init script to do it :)
>>>> Wouldn't it make sense to write those lockfiles to ~/ instead of a
>>>> systemwide dir?
>>> Some tools that use libbash (my custom app for example), run scripts
>>> as system users that do not have valid ~/
>> A valid point maybe also /tmp, your /var/lock/dirlocks has currently the
>> same functions (meant as permissions) as /tmp.
>Sure. But still I need to create /tmp/dirlocks
>on boot. How do I do it?

I believe Patrick meant to put the files in /tmp, not in /tmp/dirlocks.  If 
you need the locks to last across reboots, /var/tmp, not /var/tmp/dirlocks.

Both /tmp and /var/tmp have the 1777 permissions you want and are present on 
any Debian system.
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: