From d2bfd046e44b0eb4938e7fa1ae1d418e9d51be26 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: May 17 2006 11:40:41 +0000 Subject: - Added 'restartlog' to initscript, for clearing out error_log. Useful for problem diagnosis. --- diff --git a/cups.init b/cups.init index c691c9d..f84772e 100644 --- a/cups.init +++ b/cups.init @@ -92,6 +92,11 @@ case $1 in status) status $DAEMON ;; + restartlog) + stop + cat /dev/null >/var/log/cups/error_log + start + ;; *) echo $"Usage: $prog {start|stop|restart|condrestart|reload|status}" diff --git a/cups.spec b/cups.spec index 370fc55..3002304 100644 --- a/cups.spec +++ b/cups.spec @@ -373,6 +373,8 @@ rm -rf $RPM_BUILD_ROOT %changelog * Wed May 16 2006 Tim Waugh +- Added 'restartlog' to initscript, for clearing out error_log. Useful + for problem diagnosis. - Initscript no longer needs to check for printconf-backend. * Tue May 16 2006 Tim Waugh 1:1.2.0-3