c49d1a3273
We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
30 lines
558 B
Bash
30 lines
558 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: %%NAME%%
|
|
# REQUIRE: postgresql
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable `%%NAME%%':
|
|
#
|
|
#%%NAME%%_enable="YES"
|
|
#
|
|
# and be sure to configure %%PREFIX%%/etc/%%NAME%%.conf
|
|
|
|
. "%%RC_SUBR%%"
|
|
|
|
name="%%NAME%%"
|
|
rcvar=`set_rcvar`
|
|
|
|
pidfile="/var/run/$name.pid"
|
|
command="%%PREFIX%%/bin/slon"
|
|
command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile &"
|
|
required_files="%%PREFIX%%/etc/$name.conf"
|
|
|
|
# read configuration and set defaults
|
|
load_rc_config "$name"
|
|
: ${%%NAME%%_enable="NO"}
|
|
|
|
run_rc_command "$1"
|