|
|
@@ -5,12 +5,16 @@
|
|
|
|
|
|
%config
|
|
|
bacula_enable="$openpkg_rc_def"
|
|
|
- bacula_dir_enable=@with_server@
|
|
|
- bacula_sd_enable=@with_server@
|
|
|
- bacula_fd_enable=yes
|
|
|
+ bacula_dir_enable="@with_server@"
|
|
|
+ bacula_sd_enable="@with_server@"
|
|
|
+ bacula_fd_enable="yes"
|
|
|
bacula_debug=""
|
|
|
bacula_log_files="@l_prefix@/var/bacula/log"
|
|
|
- bacula_log_numfiles=4
|
|
|
+ bacula_log_prolog="true"
|
|
|
+ bacula_log_epilog="true"
|
|
|
+ bacula_log_numfiles="10"
|
|
|
+ bacula_log_minsize="1M"
|
|
|
+ bacula_log_complevel="9"
|
|
|
|
|
|
%status -u @l_susr@ -o
|
|
|
bacula_usable="no"
|
|
|
@@ -37,10 +41,14 @@
|
|
|
sleep 5
|
|
|
rc bacula start
|
|
|
|
|
|
-%weekly -u @l_susr@
|
|
|
+%daily -u @l_susr@
|
|
|
rcService bacula enable yes || exit 0
|
|
|
if [ ".$bacula_log_files" != . ]; then
|
|
|
shtool rotate -f \
|
|
|
- -n ${bacula_log_numfiles} -z 9 -m 640 -r $bacula_log_files
|
|
|
+ -n ${bacula_log_numfiles} -s ${bacula_log_minsize} -d \
|
|
|
+ -z ${bacula_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 640 \
|
|
|
+ -P "${bacula_log_prolog}" \
|
|
|
+ -E "${bacula_log_epilog}" \
|
|
|
+ $bacula_log_files
|
|
|
fi
|
|
|
|