fix squid stuff
This commit is contained in:
parent
32af825f62
commit
258f0b4343
@ -26,7 +26,7 @@ class squid::debian($version, $config_template, $error_template) {
|
||||
|
||||
logrotate_d { 'squid':
|
||||
postrotate => 'service squid rotate',
|
||||
pattern => "${squid::log}/access.log"
|
||||
pattern => "${squid::log_dir}/access.log"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,4 +59,10 @@ stop() {
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
rotate() {
|
||||
$BIN $ARGS -k rotate
|
||||
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
<%= scope.function_template('base/init-d-actions') %>
|
||||
|
@ -9,6 +9,9 @@ case "$1" in
|
||||
stop
|
||||
start
|
||||
;;
|
||||
rotate)
|
||||
rotate
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
$RETVAL=1
|
||||
|
Loading…
Reference in New Issue
Block a user