mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
0175383f0a
propogated by copy and paste. 1. Primarily the "empty variable" default assignment, which is mostly ${name}_flags="", but fix a few others as well. 2. Where they are not already documented, add the existence of the _flags (or other deleted empties) option to the comments, and in some cases add comments from scratch. 3. Replace things that look like: prefix=%%PREFIX%% command=${prefix}/sbin/foo to just use %%PREFIX%%. In many cases the $prefix variable is only used once, and in some cases it is not used at all. 4. In a few cases remove ${name}_flags from command_args 5. Remove a long-stale comment about putting the port's rc.d script in /etc/rc.d (which is no longer necessary). No PORTREVISION bumps because all of these changes are noops.
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
#!/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 reload status
|
|
#
|
|
|
|
command=%%PREFIX%%/bin/virtuoso
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
load_rc_config virtuoso
|
|
|
|
# set defaults
|
|
virtuoso_enable=${virtuoso_enable:-"NO"}
|
|
virtuoso_user=virtuoso
|
|
eval virtuoso_config=${virtuoso_config:-"~${virtuoso_user}/db/virtuoso.ini"}
|
|
virtuoso_class=${virtuoso_class:-"default"}
|
|
|
|
name=virtuoso
|
|
rcvar=`set_rcvar`
|
|
command_args="-D ${virtuoso_data} ${virtuoso_flags}"
|
|
extra_commands="reload"
|
|
|
|
start_cmd="virtuoso_command start"
|
|
stop_cmd="virtuoso_command stop"
|
|
restart_cmd="virtuoso_command restart"
|
|
reload_cmd="virtuoso_command reload"
|
|
status_cmd="virtuoso_command status"
|
|
|
|
virtuoso_command()
|
|
{
|
|
su -l ${virtuoso_user} -c "exec ${command} ${command_args} ${rc_arg}"
|
|
}
|
|
|
|
run_rc_command "$1"
|