aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-relay/files/postgresql-relay.in
blob: d3e2e69f69977001448887b811db32c52f618b65 (plain) (blame)
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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: postgresql-relay
# REQUIRE: LOGIN
# AFTER: postgresql
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable spamd:
#
#postgresqlrelay_enable="YES"
#
# See postgresql-relay(8) for flags
#

. /etc/rc.subr

name=postgresqlrelay
rcvar=postgresqlrelay_enable

command=%%PREFIX%%/bin/postgresql-relay
required_files=%%PREFIX%%/etc/postgresql-relay.conf

load_rc_config $name

postgresqlrelay_enable=${postgresqlrelay_enable:-"NO"}

run_rc_command "$1"