summaryrefslogtreecommitdiff
path: root/databases/postgresql-relay/files/postgresql-relay.in
blob: 18d132abb0c17367105698c179870b95624c5102 (plain)
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
#!/bin/sh

# 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"