summaryrefslogtreecommitdiffstats
path: root/japanese/tiarra/files/tiarra.in
blob: 2a46ceef38d767f6f40e5b07a9203e8663b7315d (plain)
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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: tiarra
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name="tiarra"
rcvar=tiarra_enable

load_rc_config $name

tiarra_enable=${tiarra_enable:-"NO"}
tiarra_flags=${tiarra_flags:-"--quiet"}
tiarra_user=${tiarra_user:-"%%TIARRA_USER%%"}
tiarra_chdir=${tiarra_chdir:-"%%PREFIX%%/${name}"}

command="${tiarra_chdir}/${name}"
command_interpreter="%%PREFIX%%/bin/perl"
required_dirs="${tiarra_chdir}"
required_files="${tiarra_chdir}/${name}.conf"
extra_commands="reload"
sig_stop="${tiarra_sig_stop:-TERM}"

run_rc_command "$1"
OpenPOWER on IntegriCloud