summaryrefslogtreecommitdiff
path: root/mail/smfsav-devel/files/smfsav.in
blob: 9577baa550e55a18a181fb32f8614ecf2b0c5f49 (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
#!/bin/sh

# PROVIDE: smfsav
# REQUIRE: NETWORKING
# BEFORE: mail

# Written for FreeBSD.
#
# $FreeBSD$
#
# Copy this file into /usr/local/etc/rc.d as /usr/local/etc/rc.d/smfsav
# Add this line to /etc/rc.conf:
#
# smfsav_enable="YES"

. /etc/rc.subr

name="smfsav"
rcvar=smfsav_enable

load_rc_config ${name}

required_files=${smfsav_config:="%%PREFIX%%/etc/smf-sav.conf"}
command="%%PREFIX%%/sbin/smf-sav"
command_args="-c ${required_files}"

run_rc_command "$1"