diff options
Diffstat (limited to 'net-misc/iputils/files/rarpd.init.d')
-rw-r--r-- | net-misc/iputils/files/rarpd.init.d | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-misc/iputils/files/rarpd.init.d b/net-misc/iputils/files/rarpd.init.d new file mode 100644 index 0000000..27081fc --- /dev/null +++ b/net-misc/iputils/files/rarpd.init.d @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |