#!/bin/sh # PROVIDE: perdition # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable perdition # # perdition_enable="YES" # perdition_flags="" # # See perdition(8) for flags # perdition_enable=${perdition_enable-"NO"} . /etc/rc.subr name="perdition" rcvar=perdition_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/perdition/${name}.pid" load_rc_config $name run_rc_command "$1"