blob: bf8cf1e271d75cb529ca66f033562016504e26b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/var/run/rarpd.pid"
command="/usr/sbin/rarpd"
# The -d option keeps it from forking. This way s-s-d can do the fork and
# set up the pidfile with the right value below.
command_args="-d ${RARPD_OPTS} ${RARPD_IFACE}"
start_stop_daemon_args="--background --make-pidfile"
start_pre() {
if [ ! -f /etc/ethers ] ; then
eerror "Please create /etc/ethers with the following content:"
eerror "[MAC address] [name or IP]"
return 1
fi
return 0
}
|