2001-08-23 20:27:46 +02:00
|
|
|
#!/bin/sh
|
2004-05-04 14:56:56 +02:00
|
|
|
# $FreeBSD$
|
2006-11-22 02:23:30 +01:00
|
|
|
#
|
2004-05-04 14:56:56 +02:00
|
|
|
# PROVIDE: dracd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2004-05-04 14:56:56 +02:00
|
|
|
#
|
2006-11-22 02:23:30 +01:00
|
|
|
# Add the following lines to /etc/rc.conf to enable postfix:
|
|
|
|
# dracd_enable (bool): Set it to "YES" to enable rpc.dracd.
|
|
|
|
# Default is "NO".
|
|
|
|
# dracd_flags (str): Set to "" by default.
|
|
|
|
# Extra flags passed to rpc.dracd.
|
2004-05-04 14:56:56 +02:00
|
|
|
#
|
2001-08-23 20:27:46 +02:00
|
|
|
|
2004-05-04 14:56:56 +02:00
|
|
|
. %%RC_SUBR%%
|
2001-08-23 20:27:46 +02:00
|
|
|
|
2004-05-04 14:56:56 +02:00
|
|
|
name="dracd"
|
|
|
|
rcvar=`set_rcvar`
|
2006-03-23 16:53:09 +01:00
|
|
|
command="%%PREFIX%%/sbin/rpc.dracd"
|
2004-05-04 14:56:56 +02:00
|
|
|
|
|
|
|
load_rc_config $name
|
2006-11-22 02:23:30 +01:00
|
|
|
|
|
|
|
: ${dracd_enable="NO"}
|
|
|
|
: ${dracd_flags=""}
|
|
|
|
|
|
|
|
required_files="%%PREFIX%%/etc/dracd.allow"
|
|
|
|
|
2004-05-04 14:56:56 +02:00
|
|
|
run_rc_command "$1"
|