From 00561d057d764b055f0800427e51d341ca581941f0353e7bebc96c4a6c5cba0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 23 Jun 2015 08:52:14 +0000 Subject: [PATCH] - Fix logrotate script to not fail when vsftpd is not running, bnc#935279 OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=86 --- vsftpd.changes | 6 ++++++ vsftpd.logrotate | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vsftpd.changes b/vsftpd.changes index c23d1b6..84d3bf5 100644 --- a/vsftpd.changes +++ b/vsftpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 23 08:51:32 UTC 2015 - tchvatal@suse.com + +- Fix logrotate script to not fail when vsftpd is not running, + bnc#935279 + ------------------------------------------------------------------- Fri Apr 17 16:35:14 UTC 2015 - tchvatal@suse.com diff --git a/vsftpd.logrotate b/vsftpd.logrotate index 789a6b5..db6877e 100644 --- a/vsftpd.logrotate +++ b/vsftpd.logrotate @@ -9,6 +9,6 @@ create 600 root root sharedscripts postrotate - /sbin/killproc -HUP /usr/sbin/vsftpd + pgrep vsftpd && killall -HUP vsftpd endscript }