You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
861 B

23 years ago
#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
## rc.dhcp-agent -- Run-Commands
##
%config
dhcp_agent_enable="$openpkg_rc_def"
23 years ago
dhcp_agent_log_prolog="true"
dhcp_agent_log_epilog="true"
dhcp_agent_log_numfiles="10"
dhcp_agent_log_minsize="1M"
dhcp_agent_log_complevel="9"
%start
rcService dhcp_agent enable yes || exit 0
# FIXME: missing operation
%stop
rcService dhcp_agent enable yes || exit 0
# FIXME: missing operation
23 years ago
%daily -u @l_susr@
rcService dhcp_agent enable yes || exit 0
23 years ago
# rotate logfile
shtool rotate -f \
-n ${dhcp_agent_log_numfiles} -s ${dhcp_agent_log_minsize} -d \
-z ${dhcp_agent_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
23 years ago
-P "${dhcp_agent_log_prolog}" \
-E "${dhcp_agent_log_epilog}" \
@l_prefix@/var/dhcp-agent/dhcp-agent.log