Skip to content

Commit

Permalink
Fix OpenERP Startup
Browse files Browse the repository at this point in the history
  • Loading branch information
simaomazive committed Sep 20, 2019
1 parent 9371e3c commit 60709c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions startopenerp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically run script at boot time
# Following are simple instructions
# Make /etc/rc.d/rc.local executable, by using this command:
chmod +x /etc/rc.d/rc.local
# Edit the file /etc/rc.local and to the bottom of it simply add the line pointing to your shell script:
/path/MyShScript.sh
# And then to make it executable, run:
chmod +x /path/MyShScript.sh
# DONE!


9 changes: 9 additions & 0 deletions startopenerp/startopenerp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Stop OpenERP service
sudo service openerp stop
# Start OpenERP service
sudo su - openerp -c "cd /opt/bahmni-erp/ && nohup ./openerp-server --addons-path=/opt/bahmni-erp/bahmni-addons,/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons &"
echo "OpenERP started"


0 comments on commit 60709c5

Please sign in to comment.