Disable Xorg.0.log

Alexandr Krivulya shuriku at shurik.kiev.ua
Fri Feb 13 07:14:42 UTC 2015


13.02.2015 08:18, isoa пишет:
> Did starting X with
>
> X -logfile /dev/null
>
> work, or not?
>
> You were implying that even if above command would work, you require
> logfile specified in configuration. Is it a necessity to specify
> logfile in config?
>

This works only if X started with root account, see Xorg(1) for details.
When specified -logverbose -1 it creates empty logfile, which consumes
only 1 block.

> Alexandr Krivulya kirjoitti 12.02.2015 14:19:
>> 12.02.2015 12:29, Beeblebrox пишет:
>>> I have diskless clients running X.org.
>>> /var is mounted from conf/base/var.cpio.gz, and is defined with
>>> md_size 6144.
>>> Starting X populates the log file, which quickly fills up the md
>>> assigned to /var. I don't need Xorg.0.log for the time being, so how
>>> can I disable it?
>>>
>>> These are the solutions (which don't work) that I have found:
>>> 1. Set /dev/null as logfile - The X.org amn page specifies "-logfile
>>> filename" as a command line switch. The equivalent setting for
>>> xorg.xonf is NOT {Option  "logfile" "/dev/nul/somefile".
>>> 2. ln -s /dev/null/somefile /var/log/Xorg.0.log - will not work
>>> because X always moves the old file and creates a new log on each
>>> start-up.
>>>
>>> Any ideas?
>>> Regards.
>>
>> I don't know how to completely disable logging, but you can try to set
>> -logverbose -1
>> _______________________________________________
>> freebsd-x11 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
>> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"



More information about the freebsd-x11 mailing list