Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: find -not -type d< Next Oldest | Next Newest >
Juanito Offline

Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Oct. 07 2007,11:45 QUOTE

Kind of off-topic, but...

Samba and cups are examples of applications that will not work unless they find certain directories, eg /var/locks, that can be empty as long as they exist.

I've been using "touch /var/locks/placeholder" to be able to add the directory to my backup (but avoid saving all of the files that might created in the directory) and to indicate in a *.dsl extension that this directory is required.
Back to top
Profile PM 
mikshaw Offline

Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 07 2007,13:13 QUOTE

I've been using "touch /var/locks/placeholder"
I'd say this is probably the best solution overall, of those that I've heard. I use something similar to this in one or two extensions that want certain personal configuration files in the user's home directory. Rather than include these files in user.tar.gz, they are installed to the application directory, and the application is run from a wrapper script. The wrapper checks for the existence of the needed files/directories, and copies/creates them only if necessary before running the application. This method allows you to store an original file that can be used in the event of a configuration mishap, it allows the same behavior if you happen to run the program as a different user, and allows you to indiscriminately delete all directories in a package without causing application failure. The drawback, of course, is that it requires the use of a wrapper script.

Using wrappers is a fairly common practice even outside of DSL, though. Apps such as Firefox that are intended to be essentially self-contained will often use wrappers to prepare the environment to run the app, just as we do for many uci and tar.gz mydsl packages.

Back to top
Profile PM WEB 
6 replies since Oct. 06 2007,09:09 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: find -not -type d

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code