blob: 6e0e845b73d9707268e24ff69e4bd57b950ae381 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
# PROVIDE: openerpd
# REQUIRE: postgresql LOGIN
#
# Add the following lines to /etc/rc.conf
# to enable this service:
#
# openerpd_enable (bool): Set to NO by default.
# Set it to YES to enable mongod.
#
# Additional configurable variables:
# openerpd_config (path): Set to %%PREFIX%%/etc/openerp-server.conf
# by default. Additional configuration. You
# can also use openerpd_flags for additional
# command line arguments.
. /etc/rc.subr
name="openerpd"
rcvar=${name}_enable
command=%%PREFIX%%/bin/openerp-server
load_rc_config $name
: ${openerpd_enable="NO"}
: ${openerpd_config="%%PREFIX%%/etc/openerp-server.conf"}
required_files="$openerpd_config"
command_args="-c $openerpd_config >/dev/null 2>&1 &"
run_rc_command "$1"
|