aboutsummaryrefslogtreecommitdiffstats
path: root/devel/athens/files/athens.in
blob: 2c59b63c0f91bf295dadf24bf221f390f5874085 (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
#!/bin/sh
#
# PROVIDE: athens
# REQUIRE: networking
# KEYWORD: shutdown
#
# athens_enable (bool):
#   Default value: "NO"
#   Flag that determines whether athens is enabled
#
# athens_config (string)
#   Default value %%ETCDIR%%/athens.toml
#   Path to the athens configuration file
#

. /etc/rc.subr

: ${athens_enable:="NO"}
: ${athens_config:="%%ETCDIR%%/athens.toml"}

name=athens
rcvar=athens_enable
athens_command="%%PREFIX%%/bin/athens -config_file ${athens_config}"
command="/usr/sbin/daemon"
command_args="-S ${athens_command}"

PATH="${PATH}:%%PREFIX%%/bin"

load_rc_config $name

required_files="${athens_config}"

run_rc_command "$1"