summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--debian/php5-fpm.logrotate6
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 330c4b095..85032ccb6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ php5 (5.5.7+dfsg-1+dyson1) UNRELEASED; urgency=low
* Use dh-smf on illumos
* Fixed build dep dh-systemd to be linux-only
* php5-common does not depends on psmisc on illumos
+ * Updated d/php5-fpm.logrotate to support SMF too
-- Igor Pashev <pashev.igor@gmail.com> Fri, 20 Dec 2013 14:48:23 +0400
diff --git a/debian/php5-fpm.logrotate b/debian/php5-fpm.logrotate
index 328193e7d..6fc1f088b 100644
--- a/debian/php5-fpm.logrotate
+++ b/debian/php5-fpm.logrotate
@@ -6,6 +6,10 @@
compress
delaycompress
postrotate
- invoke-rc.d php5-fpm reopen-logs > /dev/null
+ if [ -x /usr/bin/smf_present ]; then \
+ svcadm refresh php5-fpm > /dev/null; \
+ else \
+ invoke-rc.d php5-fpm reopen-logs > /dev/null; \
+ fi
endscript
}