Настройка технологического журнала
$ sudo mkdir -p /var/log/1c/logs/excp $ sudo mkdir -p /var/log/1c/logs/vrs $ sudo mkdir -p /var/log/1c/dumps
$ sudo chown -R usr1cv8:grp1cv8 /var/log/1c $ sudo chmod g+rw /var/log/1c
$ sudo mkdir -p /opt/1C/v8.3/x86_64/conf
$ sudo nano /opt/1C/v8.3/x86_64/conf/logcfg.xml
Вставить:
<?xml version="1.0"?> <config xmlns="http://v8.1c.ru/v8/tech-log"> <log location="/var/log/1c/logs/excp" history="192"> <event> <eq property="name" value="excp"/> </event> <property name="all"/> </log> <log location="/var/log/1c/logs/vrs" history="24"> <event> <eq property="name" value="vrsrequest"/> </event> <event> <eq property="name" value="vrsresponse"/> </event> <property name="all"/> </log> <dump location="/var/log/1c/dumps" create="1" type="3"/> </config>
Сохранить.
$ sudo chown -R usr1cv8:grp1cv8 /opt/1C/v8.3/x86_64/conf
$ sudo chmod g+rw /opt/1C/v8.3/x86_64/conf
Настройка дампов
$ echo 'usr1cv8 soft core unlimited' | sudo tee -a /etc/security/limits.conf$ echo 'usr1cv8 hard core unlimited' | sudo tee -a /etc/security/limits.conf
$ echo 'kernel.core_pattern=/var/log/1c/dumps/core.%e.%p ' | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p /etc/sysctl.conf
Проверка:
$ sudo su usr1cv8
$ bash
$ ps ax | grep bash
2173 pts/0 Ss 0:00 -bash
5138 pts/0 S 0:00 bash
5255 pts/0 S+ 0:00 grep --color=auto bash
$ kill -s SIGSEGV 5138
Segmentation fault (core dumped)
$ cd /var/log/1c/dumps
$ ls
core.bash.5138
$ rm core.bash.5138
$ exit
Комментариев нет:
Отправить комментарий