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