#!/bin/sh

# PROVIDE: smfsav
# REQUIRE: NETWORKING
# BEFORE: sendmail

# Written for FreeBSD.
#
# $FreeBSD: head/mail/smfsav/files/smfsav.in 388358 2015-06-02 13:47:20Z amdmi3 $
#
# 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:="/usr/local/etc/smf-sav.conf"}
command="/usr/local/sbin/smf-sav"
command_args="-c ${required_files}"

run_rc_command "$1"
