Whamcloud - gitweb
debian: don't restart e2scrub_all when upgrading package
authorDarrick J. Wong <djwong@kernel.org>
Wed, 10 Jan 2024 05:57:24 +0000 (21:57 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Mar 2024 20:28:08 +0000 (16:28 -0400)
When installing or upgrading the e2fsprogs package, only start the
e2scrub_all timer and the reaping service.  Don't restart e2scrub_all
itself, because that will kill any scrubs in progress, which will
trigger the failure reporting.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20240110055724.GC722946@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian/rules

index b85976f..0120fe6 100755 (executable)
@@ -148,6 +148,10 @@ override_dh_installinfo:
        dh_installinfo -pcomerr-dev ${stdbuilddir}/lib/et/com_err.info
        dh_installinfo -plibext2fs-dev ${stdbuilddir}/doc/libext2fs.info
 
+override_dh_installsystemd:
+       dh_installsystemd -p e2fsprogs --no-restart-after-upgrade --no-stop-on-upgrade e2scrub_all.timer e2scrub_reap.service
+       dh_installsystemd --name=service1
+
 override_dh_makeshlibs:
        for i in $(SYMBOL_LIBS); \
        do \