View | Details | Raw Unified | Return to bug 267907 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-mgmt/promscale/files/promscale.in (-4 / +7 lines)
Lines 12-21 Link Here
12
#     Set to NO by default
12
#     Set to NO by default
13
# promscale_user (string):
13
# promscale_user (string):
14
#     Set user that promscale will run under
14
#     Set user that promscale will run under
15
#     Default is "%%GRAFANA_USER%%"
15
#     Default is "%%USERS%%"
16
# promscale_group (string):
16
# promscale_group (string):
17
#     Set group that own promscale files
17
#     Set group that own promscale files
18
#     Default is "%%GRAFANA_GROUP%%"
18
#     Default is "%%GROUPS%%" 
19
# promscale_args (string):
20
#     Extra arguments for to pass to promscale
21
#     Default is ""
19
22
20
. /etc/rc.subr
23
. /etc/rc.subr
21
24
Lines 27-39 load_rc_config $name Link Here
27
: ${promscale_enable:="NO"}
30
: ${promscale_enable:="NO"}
28
: ${promscale_user:="%%USERS%%"}
31
: ${promscale_user:="%%USERS%%"}
29
: ${promscale_group:="%%GROUPS%%"}
32
: ${promscale_group:="%%GROUPS%%"}
33
: ${promscale_args:=""}
30
34
31
pidfile="/var/run/${name}/${name}.pid"
35
pidfile="/var/run/${name}/${name}.pid"
32
required_files="${promscale_config}"
36
required_files="${promscale_config}"
33
37
34
procname="%%PREFIX%%/bin/promscale"
38
procname="%%PREFIX%%/bin/promscale"
35
command="/usr/sbin/daemon"
39
command="/usr/sbin/daemon"
36
command_args="-f -p ${pidfile} -t ${name} /usr/bin/env ${promscale_env} ${procname} ${promscale_args}"
40
command_args="-f -p ${pidfile} -t ${name} -T ${name} /usr/bin/env ${promscale_env} ${procname} ${promscale_args}"
37
41
38
start_precmd="promscale_start_precmd"
42
start_precmd="promscale_start_precmd"
39
43
40
- 

Return to bug 267907