Skip to content

Commit

Permalink
Merge pull request #2 from esaude/MPOC-Fix_OpenERP_Startup
Browse files Browse the repository at this point in the history
Simao Mazive | Fix OpenERP Startup
  • Loading branch information
joaomachiana authored Oct 31, 2019
2 parents fe9b2db + 60709c5 commit 2a1a5c5
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 2a1a5c5

Please sign in to comment.