fix squid stuff

This commit is contained in:
John Bintz 2012-05-23 07:52:12 -04:00
parent 32af825f62
commit 258f0b4343
3 changed files with 10 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class squid::debian($version, $config_template, $error_template) {
logrotate_d { 'squid': logrotate_d { 'squid':
postrotate => 'service squid rotate', postrotate => 'service squid rotate',
pattern => "${squid::log}/access.log" pattern => "${squid::log_dir}/access.log"
} }
} }

View File

@ -59,4 +59,10 @@ stop() {
return $RETVAL return $RETVAL
} }
rotate() {
$BIN $ARGS -k rotate
return $RETVAL
}
<%= scope.function_template('base/init-d-actions') %> <%= scope.function_template('base/init-d-actions') %>

View File

@ -9,6 +9,9 @@ case "$1" in
stop stop
start start
;; ;;
rotate)
rotate
;;
*) *)
echo "Usage: $0 {start|stop|restart}" echo "Usage: $0 {start|stop|restart}"
$RETVAL=1 $RETVAL=1