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.
 
 
 
 
 
 

22 lines
599 B

#!@l_prefix@/bin/openpkg rc
##
## rc.scponly -- Run-Commands
##
%config
scponly_enable="$openpkg_rc_def"
scponly_log_prolog="true"
scponly_log_epilog="true"
scponly_log_numfiles="10"
scponly_log_minsize="1M"
scponly_log_complevel="9"
%daily -u @l_susr@
rcService scponly enable yes || exit 0
shtool rotate -f \
-n ${scponly_log_numfiles} -s ${scponly_log_minsize} -d \
-z ${scponly_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
-P "${scponly_log_prolog}" \
-E "${scponly_log_epilog}" \
@l_prefix@/var/scponly/scponly.log