#!/bin/sh # PROVIDE: smfsav # REQUIRE: NETWORKING # BEFORE: mail # Written for FreeBSD. # # $FreeBSD: head/mail/smfsav/files/smfsav.in 505489 2019-06-30 20:48:49Z swills $ # # 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"