aboutsummaryrefslogtreecommitdiff
path: root/finance/openerp-server
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-03-09 01:22:00 +0000
committerWen Heping <wen@FreeBSD.org>2010-03-09 01:22:00 +0000
commit5c2b4ecb6348b040d56278b7e5a72d196bfc23f3 (patch)
tree6d242885dabfee84a2becfb9d453486da0db8cce /finance/openerp-server
parente0001aad64f61e1287f01589dfa883268faee655 (diff)
downloadports-5c2b4ecb6348b040d56278b7e5a72d196bfc23f3.tar.gz
ports-5c2b4ecb6348b040d56278b7e5a72d196bfc23f3.zip
- Improve RC scripts
Thanks to: dougb@freebsd.org
Notes
Notes: svn path=/head/; revision=250744
Diffstat (limited to 'finance/openerp-server')
-rw-r--r--finance/openerp-server/files/openerpd.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/finance/openerp-server/files/openerpd.in b/finance/openerp-server/files/openerpd.in
index 4adc8a0fae8e..ccd8c784bd8a 100644
--- a/finance/openerp-server/files/openerpd.in
+++ b/finance/openerp-server/files/openerpd.in
@@ -27,6 +27,8 @@ load_rc_config $name
: ${openerpd_enable="NO"}
: ${openerpd_config="%%PREFIX%%/etc/openerp-server.conf"}
-command_args="-c /usr/local/bin/openerp-server.conf >/dev/null 2>&1 &"
+required_files="$openerpd_config"
+
+command_args="-c $openerpd_config >/dev/null 2>&1 &"
run_rc_command "$1"