[packages/wtmpdb] - post/postun for systemd units

baggins baggins at pld-linux.org
Sat Dec 23 13:34:30 CET 2023


commit da1ac962a9e80d3bcd711a6a4d512017aa4d0b8f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Dec 23 12:39:26 2023 +0100

    - post/postun for systemd units

 wtmpdb.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/wtmpdb.spec b/wtmpdb.spec
index bdffdff..d92d57f 100644
--- a/wtmpdb.spec
+++ b/wtmpdb.spec
@@ -77,7 +77,13 @@ install -d $RPM_BUILD_ROOT/var/lib/wtmpdb
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p /sbin/ldconfig
+%post
+/sbin/ldconfig
+%systemd_post wtmpdb-rotate.timer wtmpdb-update-boot.service
+
+%preun
+%systemd_preun wtmpdb-rotate.timer wtmpdb-update-boot.service
+
 %postun	-p /sbin/ldconfig
 
 %files
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wtmpdb.git/commitdiff/da1ac962a9e80d3bcd711a6a4d512017aa4d0b8f



More information about the pld-cvs-commit mailing list