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: How best to deal with conf and log files in a uci, First attempt at a uci extension< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: June 12 2007,16:19 QUOTE

This my first attempt at a uci - for xorg-7.2 in this case.

After building the uci, the first thing I discovered is that xorg will not run because it needs to write a log file to /opt/xorg72/var/log and read a configuration file from /opt/xorg72/etc/X11 and the uci is read-only.

I was thinking that I could perhaps use symlinks as follows:

/opt/xorg72/var/log/Xorg.0.log --> /var/log/Xorg.0.log
/opt/xorg72/var/log/Xorg.0.log.old --> /var/log/Xorg.0.log.old
/opt/xorg72/etc/X11/xorg.conf --> /etc/X11/xorg.conf

Is this an "approved" way to work with uci extensions in DSL?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: June 12 2007,18:35 QUOTE

For the xlogs, you probably could leave the symlinks if they work.  It seems the -log option only works for real-uid root.  The other alternative would be to recompile using a different default path just for the xlogs.

/opt/xorg72/etc/X11 is fine because it will be read-only.  Maybe leaving a default "vesa" config there would be good for default behaviour (which I personally do).  Why is it fine still if you want to change your xconfig?  Because it looks like the search path uses /etc/X11 first... (i.e. see `man xorg.conf` )

p.s. X isn't a wm.. maybe system would be better?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 12 2007,19:59 QUOTE

In most cases, the symlink should work fine. In the case of Xorg, though, you *might* run into some trouble as it attempts to shuffle logs. Once the log gets to a certain size, a new one is created, so it might choke trying to create a new file on a read-only filesystem. I might be wrong about this, of course. I know that XFree86 creates multiple log files, but I don't know if Xorg might just stick with those two.

Personally i'd still look into the suggestion of using a different default path.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: June 12 2007,23:08 QUOTE

Good point mikshaw.  If you run the defaults it will only use Xorg.0.log and Xorg.0.log.old - but afaik the # corresponds to the xserver # currently running ( $DISPLAY by default is :0.0 )

Perhaps using /opt/xorg72/var/log/ --> /var/log/ will be easier?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 13 2007,01:55 QUOTE

That's an even better idea.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
9 replies since June 12 2007,16:19 < 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: How best to deal with conf and log files in a uci

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