Установливаю DNC: КАССА на Ubuntu 10.10. Скачал 10.10, масимально обновил и установил нужные пакеты с диска , нагуглил и установил недостающие пакеты. Споткнулся на пункте
поместим демоны загрузки и выгрузки и прочие необходимые скрипты в автозагрузку (необходимо для работы обмена и активации программы), отредактируем файл /etc/rc.local, чтобы он выглядел следующим образом:
sudo nano /etc/rc.local
chmod 644 `FindHardPath`
chmod 666 /dev/ttyS*
/usr/bin/upload > /tmp/upload_daemon.out
/usr/bin/daemon_unload > /tmp/unload_daemon.out
exit 0
Теперь они будут у нас запускаться при старте системы.
Проверим это перед запуском DNC:Касса и перезагрузим компьютер!
После загрузки проверим стартуют ли автоматом скрипты, делаем в терминале:
ps ax | grep upload
При проверке ps ax | grep upload получаем
2575 pts/0 S+ 0:00 grep --color=auto upload
демоны загрузки выгрузки не работают
(такая же ситуация при установке на ubuntu 12.04)
Далее запускаем /usr/bin/reshka
Программа запускается . Товары из goods не грузятся
при запуске ДНС в терминале /usr/bin/reshka
kassir@kassir:~$ /usr/bin/reshka
--------AUTHORIZATION-------
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
dancy_pgsqllib[2662]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
trying config file: /home/kassir/.dnc/Trans_db.conf
file not found. trying config file: /etc/dancy/Trans_db.conf
`````````````````````````````````````````````````
RESHKA MAIN PROCESS ID - 2662
VERSION: ДЭНСИ:КАССА 1.2.5 patch8
`````````````````````````````````````````````````
USBDRV::USBDRV()
can't read value IpAddress use as default 127.0.0.1
can't read value IpPort use as default 5557
``````````````````````````
SYSTEM SETUP: was init 91 parameters
``````````````````````````
BCS type = 0
MCR type = 0
PasswordAuthorization()
Authorization ----- ok
Администратор
------Main Menu------
--------ware------
D I S P L A Y --- STOPED --- D I S P L A Y
PortFileDescr MCRDRV = 0
end void MCRDRV::stop()
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
PgRef::PgRef(const char* str)
trying config file: /home/kassir/.dnc/LinCash_db.conf
file not found. trying config file: /etc/dancy/LinCash_db.conf
PgRef::PgRef(const char* str)
USBDRV::USBDRV()
can't read value IpAddress use as default 127.0.0.1
can't read value IpPort use as default 5557
``````````````````````````
SYSTEM SETUP: was init 91 parameters
``````````````````````````
void MainWareform::closeEvent( QCloseEvent* e )
before delete hw
D I S P L A Y --- STOPED --- D I S P L A Y
PortFileDescr MCRDRV = 0
end void MCRDRV::stop()
after delete hw
PgWare()::~PgWare
PgWare()::~PgWare
USBDRV::USBDRV()
------Main Menu------
can't read value IpAddress use as default 127.0.0.1
can't read value IpPort use as default 5557
-------service-----
----Start Service-----
Предпологаю что дело в этом
file not found. trying config file: /etc/dancy/LinCash_db.conf
dancy_pgsqllib[2138]: ERROR Cannot open configuration file /tmp/dancy/postgres_log/lin_cash.log
Как исправить?