blob: da1c267b51ee62c071572a1ecaba8f4c10c7737c (
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
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: virtuoso
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable Virtuoso Universal Server:
#
# virtuoso_enable="YES"
# # optional
# virtuoso_config="%%PREFIX%%/virtuoso/db/virtuoso.ini"
# virtuoso_flags="<set as needed>"
#
# This scripts takes one of the following commands:
#
# start stop restart status
#
. /etc/rc.subr
load_rc_config virtuoso
# set defaults
virtuoso_enable=${virtuoso_enable:-"NO"}
virtuoso_config=${virtuoso_config:-"db/virtuoso.ini"}
virtuoso_user=virtuoso
virtuoso_data=%%PREFIX%%/virtuoso
name=virtuoso
rcvar=virtuoso_enable
command=%%PREFIX%%/bin/virtuoso-t
command_args="+configfile ${virtuoso_config} ${virtuoso_flags}"
start_precmd="cd ${virtuoso_data}"
run_rc_command "$1"
|