mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
41 lines
668 B
Bash
41 lines
668 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: sqlgrey
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: mail
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable sqlgrey:
|
|
#
|
|
# sqlgrey_enable="YES"
|
|
#
|
|
# See man sqlgrey for flags or the config file.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=sqlgrey
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/sbin/sqlgrey
|
|
extra_commands=reload
|
|
command_interpreter=%%PERL%%
|
|
|
|
stop_postcmd=${name}_poststop
|
|
|
|
sqlgrey_poststop()
|
|
{
|
|
rm -f $pidfile
|
|
}
|
|
|
|
load_rc_config $name
|
|
|
|
sqlgrey_enable=${sqlgrey_enable-"NO"}
|
|
sqlgrey_config=${sqlgrey_config-"/usr/local/%%ETCDIR%%/sqlgrey.conf"}
|
|
sqlgrey_flags=${sqlgrey_flags-"--daemonize --configfile=${sqlgrey_config}"}
|
|
|
|
run_rc_command "$1"
|