From ea7be1dc504d0edbe26487d82a192b3dcde7b874 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 17 May 2006 11:40:41 +0000 Subject: [PATCH] - Added 'restartlog' to initscript, for clearing out error_log. Useful for problem diagnosis. --- cups.init | 5 +++++ cups.spec | 2 ++ 2 files changed, 7 insertions(+) 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