-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from esaude/MPOC-Fix_OpenERP_Startup
Simao Mazive | Fix OpenERP Startup
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
||
|