app-admin/logrotate: Adds postinstall message for running systems using systemd
authorChema Alonso Josa <nimiux@gentoo.org>
Thu, 5 Oct 2017 20:44:52 +0000 (22:44 +0200)
committerChema Alonso Josa <nimiux@gentoo.org>
Thu, 5 Oct 2017 20:45:29 +0000 (22:45 +0200)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=357275
Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-admin/logrotate/logrotate-3.12.3-r1.ebuild
app-admin/logrotate/logrotate-3.12.3-r2.ebuild

index ec6ce72f5358a03be3621698baa27f33e40d09ae..b5f5d4e95d90207df267e3eb5ed7fd9481a7f2ed 100644 (file)
@@ -78,11 +78,16 @@ src_install() {
 }
 
 pkg_postinst() {
+       elog
        elog "The ${PN} binary is now installed under /usr/bin. Please"
        elog "update your links"
        elog
        move_old_state_file
        elog
+       elog "If you are running systemd you might need to run:"
+       elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf"
+       elog "in order to create the new location of the logrotate state file"
+       elog
        if [[ -z ${REPLACING_VERSIONS} ]] ; then
                elog "If you wish to have logrotate e-mail you updates, please"
                elog "emerge virtual/mailx and configure logrotate in"
index 89ad370fbf17a4161f19fc66c3b1107b2d54a48b..f0661a39594ef57bb6844b18dab88d5f1ca213fd 100644 (file)
@@ -79,10 +79,14 @@ src_install() {
 }
 
 pkg_postinst() {
+       elog
        elog "The ${PN} binary is now installed under /usr/bin. Please"
        elog "update your links"
        elog
        move_old_state_file
+       elog "If you are running systemd you might need to run:"
+       elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf"
+       elog "in order to create the new location of the logrotate state file"
        elog
        if [[ -z ${REPLACING_VERSIONS} ]] ; then
                elog "If you wish to have logrotate e-mail you updates, please"