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.

25 lines
613 B

#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
## rc.rdist -- Run-Commands
##
%config
rdist_enable="$openpkg_rc_def"
rdist_log_prolog="true"
rdist_log_epilog="true"
rdist_log_numfiles="10"
rdist_log_minsize="1M"
rdist_log_complevel="9"
%daily -u @l_susr@
rcService rdist enable yes || exit 0
# rotate logfile
shtool rotate -f \
-n ${rdist_log_numfiles} -s ${rdist_log_minsize} -d \
-z ${rdist_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
-P "${rdist_log_prolog}" \
-E "${rdist_log_epilog}" \
@l_prefix@/var/rdist/rdist.log