Browse Source

Simplify start section in run command script

master
Michael Schloh von Bennewitz 22 years ago committed by Ralf S. Engelschall
parent
commit
830694551c
  1. 12
      arpd/rc.arpd

12
arpd/rc.arpd

@ -5,13 +5,12 @@
%config
arpd_enable="$openpkg_rc_def"
arpd_interface=""
arpd_listen=""
arpd_log_prolog="true"
arpd_log_epilog="true"
arpd_log_numfiles="10"
arpd_log_minsize="1M"
arpd_log_complevel="9"
arpd_ip_network="127.0.0.0/24"
%common
arpd_pidfile="@l_prefix@/var/arpd/arpd.pid"
@ -31,14 +30,7 @@
%start -u @l_susr@
rcService arpd enable yes || exit 0
rcService arpd active yes && exit 0
opts=""
if [ ".$arpd_interface" != . ]; then
opts="$opts -i $arpd_interface"
fi
if [ ".$arpd_listen" != . ]; then
opts="$opts $arpd_listen"
fi
@l_prefix@/sbin/arpd $opts >/dev/null 2>&1
@l_prefix@/sbin/arpd $arpd_ip_network >/dev/null 2>&1
%stop -u @l_susr@
rcService arpd enable yes || exit 0

Loading…
Cancel
Save