2004-12-13 06:49:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2009-07-17 20:38:22 +02:00
|
|
|
# $FreeBSD$
|
2004-12-13 06:49:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: postgresql-relay
|
|
|
|
# REQUIRE: LOGIN
|
|
|
|
# AFTER: postgresql
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2004-12-13 06:49:53 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf to enable spamd:
|
|
|
|
#
|
|
|
|
#postgresqlrelay_enable="YES"
|
|
|
|
#
|
|
|
|
# See postgresql-relay(8) for flags
|
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2004-12-13 06:49:53 +01:00
|
|
|
|
|
|
|
name=postgresqlrelay
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=postgresqlrelay_enable
|
2004-12-13 06:49:53 +01:00
|
|
|
|
|
|
|
command=%%PREFIX%%/bin/postgresql-relay
|
|
|
|
required_files=%%PREFIX%%/etc/postgresql-relay.conf
|
|
|
|
|
2009-07-17 20:38:22 +02:00
|
|
|
load_rc_config $name
|
2004-12-13 06:49:53 +01:00
|
|
|
|
|
|
|
postgresqlrelay_enable=${postgresqlrelay_enable:-"NO"}
|
|
|
|
|
|
|
|
run_rc_command "$1"
|