Lines 9-21
Link Here
|
9 |
# |
9 |
# |
10 |
# arangod_enable (bool): Set to "NO" by default. |
10 |
# arangod_enable (bool): Set to "NO" by default. |
11 |
# Set it to "YES" to enable arangod. |
11 |
# Set it to "YES" to enable arangod. |
12 |
# arangod_limits (bool): Set to "NO" by default. |
12 |
%%LEGACY_LIMITS%%# arangod_limits (bool): Set to "NO" by default. |
13 |
# Set it to yes to run `limits -e -U arangodb` |
13 |
%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U arangodb` |
14 |
# just before arangod starts. |
14 |
%%LEGACY_LIMITS%%# just before arangod starts. |
15 |
# arangod_dbpath (str): Default to "/var/db/arangodb" |
15 |
# arangod_dbpath (str): Default to "/var/db/arangodb" |
16 |
# Base database directory. |
16 |
# Base database directory. |
17 |
# arangod_logpath (str): Default to "/var/log/arangodb" |
17 |
# arangod_logpath (str): Default to "/var/log/arangodb" |
18 |
# Base logging directory |
18 |
# Base logging directory |
19 |
# arangod_apppath (str): Default to "/var/db/arangodb-apps" |
19 |
# arangod_apppath (str): Default to "/var/db/arangodb-apps" |
20 |
# Base apps directory |
20 |
# Base apps directory |
21 |
# arangod_flags (str): Custom additional arguments to be passed to arangod. |
21 |
# arangod_flags (str): Custom additional arguments to be passed to arangod. |
Lines 32-38
rcvar=arangod_enable
Link Here
|
32 |
load_rc_config $name |
32 |
load_rc_config $name |
33 |
|
33 |
|
34 |
: ${arangod_enable="NO"} |
34 |
: ${arangod_enable="NO"} |
35 |
: ${arangod_limits="NO"} |
35 |
%%LEGACY_LIMITS%%: ${arangod_limits="NO"} |
36 |
: ${arangod_dbpath="/var/db/arangodb"} |
36 |
: ${arangod_dbpath="/var/db/arangodb"} |
37 |
: ${arangod_logpath="/var/log/arangodb"} |
37 |
: ${arangod_logpath="/var/log/arangodb"} |
38 |
: ${arangod_apppath="/var/db/arangodb-apps"} |
38 |
: ${arangod_apppath="/var/db/arangodb-apps"} |
Lines 75-85
arangod_prestart()
Link Here
|
75 |
if [ ! -d ${arangod_apppath} ]; then |
75 |
if [ ! -d ${arangod_apppath} ]; then |
76 |
arangod_create_apppath || return 1 |
76 |
arangod_create_apppath || return 1 |
77 |
fi |
77 |
fi |
78 |
if checkyesno arangod_limits; then |
78 |
%%LEGACY_LIMITS%% if checkyesno arangod_limits; then |
79 |
eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null |
79 |
%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null |
80 |
else |
80 |
%%LEGACY_LIMITS%% else |
81 |
return 0 |
81 |
%%LEGACY_LIMITS%% return 0 |
82 |
fi |
82 |
%%LEGACY_LIMITS%% fi |
|
|
83 |
%%MODERN_LIMITS%% return 0 |
83 |
} |
84 |
} |
84 |
|
85 |
|
85 |
run_rc_command "$1" |
86 |
run_rc_command "$1" |