summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/logrotate
blob: d9a9e3aca25bbde0768a52c61433cc766088441b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

. `dirname $0`/functions

option	bin		reserved_option	/usr/sbin/logrotate
option	cmdline		reserved_option	'$bin -s $opt_status'
option  statusfile      standard_option /var/lib/logrotate.status

function fct_pre_start {
   local t=$( dirname $opt_statusfile )
   if [ ! -d $t ] ; then
       mkdir -p -m 755 $t || return 1
   fi
}

load_config