559bc2034e
- Add -P option to support PID file. When -a is specified /var/run/rarpd.pid is used, and when an interface is specified /var/run/rarpd.<ifname>.pid is used by default.
22 lines
306 B
Bash
Executable File
22 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: rarpd
|
|
# REQUIRE: DAEMON cleanvar
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="rarpd"
|
|
rcvar="rarpd_enable"
|
|
command="/usr/sbin/${name}"
|
|
required_files="/etc/ethers"
|
|
|
|
load_rc_config $name
|
|
pidfile="${rarpd_pidfile:-/var/run/${name}.pid}"
|
|
|
|
run_rc_command "$1"
|