Hi
I am new to Bash. I need some help with running the POS startup script from the init.d script.
First part of the script
#!/bin/bash
### BEGIN INIT INFO
# Provides: odoo.py
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start odoo daemon at boot time
# Description: Enable service provided by daemon.
# X-Interactive: true
### END INIT INFO
## more info: http://wiki.debian.org/LSBInitScripts
. /lib/lsb/init-functions
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DAEMON=/usr/bin/odoo.py
NAME=odoo
DESC=odoo
CONFIG=/etc/odoo/openerp-server.conf
LOGFILE=/var/log/odoo/odoo-server.log
PIDFILE=/var/run/${NAME}.pid
USER=odoo
export LOGNAME=$USER
In line 13 I need to replace
odoo.py
with
odoo.py --load=web,hw_proxy,hw_posbox_homepage,hw_posbox_upgrade,hw_scale,hw_scanner,hw_escpos
Not sure what parenthesis to put in.
Please help.
Thanks in advance
I don't know what do you want to achieve. Even https://www.odoo.com/documentation/8.0/reference/cmdline.html, there is no `--load` paramter. What is your purpose? Is that about start Odoo with POS module ready? If I am right, why don't you install an instance of Odoo and activate POS module? P/S: init scripts are different from OS to OS, (at least, on CentOS 7, it is shorter than on CentOS 6)