На сервере postgre висят мертвые клиенты
Добавлено: Вс авг 01, 2021 7:52 pm
На сервере postgre висят мертвые клиенты в активном состоянии, любопытно было бы очистить каталог
/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
Сервер при этом должен быть остановлен
***********************************************
ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541
1CV8Clst.lst 1CV8Clsto.lst 8cdc906e-a0d0-11e8-c48c-e0d55e26b693 acddbad0-a0c8-11e8-cf97-e0d55e26b693 snccntx9be766c4-a08a-11e8-439c-e0d55e26b693
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
snccntx.00000000.dat snccntx.dat
root@db1db02:~/1c/install# service srv1cv83 stop
root@db1db02:~/1c/install# service srv1cv83 status
● srv1cv83.service - LSB: Starts and stops the 1C:Enterprise daemons
Loaded: loaded (/etc/init.d/srv1cv83; generated; vendor preset: enabled)
Active: inactive (dead) since Thu 2018-08-16 00:36:10 MSK; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 21448 ExecStop=/etc/init.d/srv1cv83 stop (code=exited, status=0/SUCCESS)
Process: 5641 ExecStart=/etc/init.d/srv1cv83 start (code=exited, status=0/SUCCESS)
авг 15 23:45:08 db1db02 su[5654]: PAM adding faulty module: pam_gnome_keyring.so
авг 15 23:45:08 db1db02 su[5654]: Successful su for usr1cv8 by root
авг 15 23:45:08 db1db02 su[5654]: + ??? root:usr1cv8
авг 15 23:45:08 db1db02 su[5654]: pam_unix(su:session): session opened for user usr1cv8 by (uid=0)
авг 15 23:45:08 db1db02 su[5654]: pam_unix(su:session): session closed for user usr1cv8
авг 15 23:45:13 db1db02 srv1cv83[5641]: Starting 1C:Enterprise 8.3 server: OK
авг 15 23:45:13 db1db02 systemd[1]: Started LSB: Starts and stops the 1C:Enterprise daemons.
авг 16 00:36:00 db1db02 systemd[1]: Stopping LSB: Starts and stops the 1C:Enterprise daemons...
авг 16 00:36:10 db1db02 srv1cv83[21448]: Stopping 1C:Enterprise 8.3 server: OK
авг 16 00:36:10 db1db02 systemd[1]: Stopped LSB: Starts and stops the 1C:Enterprise daemons.
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
snccntx.00000000.dat snccntx.dat
root@db1db02:~/1c/install# rm /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
rm: невозможно удалить '/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx9be766c4-a08a-11e8-439c-e0d55e26b693': Это каталог
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx
ls: невозможно получить доступ к '/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx': Нет такого файла или каталога
root@db1db02:~/1c/install# rm -rf /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
root@db1db02:~/1c/install# service srv1cv83 start
/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
Сервер при этом должен быть остановлен
***********************************************
ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541
1CV8Clst.lst 1CV8Clsto.lst 8cdc906e-a0d0-11e8-c48c-e0d55e26b693 acddbad0-a0c8-11e8-cf97-e0d55e26b693 snccntx9be766c4-a08a-11e8-439c-e0d55e26b693
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
snccntx.00000000.dat snccntx.dat
root@db1db02:~/1c/install# service srv1cv83 stop
root@db1db02:~/1c/install# service srv1cv83 status
● srv1cv83.service - LSB: Starts and stops the 1C:Enterprise daemons
Loaded: loaded (/etc/init.d/srv1cv83; generated; vendor preset: enabled)
Active: inactive (dead) since Thu 2018-08-16 00:36:10 MSK; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 21448 ExecStop=/etc/init.d/srv1cv83 stop (code=exited, status=0/SUCCESS)
Process: 5641 ExecStart=/etc/init.d/srv1cv83 start (code=exited, status=0/SUCCESS)
авг 15 23:45:08 db1db02 su[5654]: PAM adding faulty module: pam_gnome_keyring.so
авг 15 23:45:08 db1db02 su[5654]: Successful su for usr1cv8 by root
авг 15 23:45:08 db1db02 su[5654]: + ??? root:usr1cv8
авг 15 23:45:08 db1db02 su[5654]: pam_unix(su:session): session opened for user usr1cv8 by (uid=0)
авг 15 23:45:08 db1db02 su[5654]: pam_unix(su:session): session closed for user usr1cv8
авг 15 23:45:13 db1db02 srv1cv83[5641]: Starting 1C:Enterprise 8.3 server: OK
авг 15 23:45:13 db1db02 systemd[1]: Started LSB: Starts and stops the 1C:Enterprise daemons.
авг 16 00:36:00 db1db02 systemd[1]: Stopping LSB: Starts and stops the 1C:Enterprise daemons...
авг 16 00:36:10 db1db02 srv1cv83[21448]: Stopping 1C:Enterprise 8.3 server: OK
авг 16 00:36:10 db1db02 systemd[1]: Stopped LSB: Starts and stops the 1C:Enterprise daemons.
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
snccntx.00000000.dat snccntx.dat
root@db1db02:~/1c/install# rm /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
rm: невозможно удалить '/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx9be766c4-a08a-11e8-439c-e0d55e26b693': Это каталог
root@db1db02:~/1c/install# ls /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx
ls: невозможно получить доступ к '/home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx': Нет такого файла или каталога
root@db1db02:~/1c/install# rm -rf /home/usr1cv8/.1cv8/1C/1cv8/reg_1541/snccntx*
root@db1db02:~/1c/install# service srv1cv83 start