Mark, On Sun, Feb 02, 2025 at 04:16:29PM +0000, Andrew Bower wrote: > On Sat, Feb 01, 2025 at 08:32:28PM +0000, Mark Hindley wrote: > > On Sat, Feb 01, 2025 at 08:23:51PM +0000, Mark Hindley wrote: > > > Andrew, > > > > > > I suppose adding something in initscripts might be possible. > > > > Actually, is there a reason why this or something similar should be > > included in > > wtmpdb itself? > > Your initscript works nicely, thanks! Validation for your translator?
Actually, I see no reason to rely on most of these dependencies or wait until runlevel 2. The dbus dependency is only for systemd to tell us about a "soft reboot", which is obviously not a thing in this case. How about this change? Seems to work ok. diff --git a/debian/wtmpdb.wtmpdb-update-boot.init b/debian/wtmpdb.wtmpdb-update-boot.init index d9213fc..4022d0f 100644 --- a/debian/wtmpdb.wtmpdb-update-boot.init +++ b/debian/wtmpdb.wtmpdb-update-boot.init @@ -15,10 +15,10 @@ fi # Provides: wtmpdb-update-boot # Required-Start: $remote_fs # Required-Stop: $remote_fs -# Should-Start: dbus systemd-remount-fs systemd-tmpfiles-setup -# Should-Stop: dbus systemd-remount-fs systemd-tmpfiles-setup -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 +# Should-Start: +# Should-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: 0 6 # Short-Description: Write boot and shutdown times into wtmpdb # Description: Invokes wtmpdb to write boot and shutdown times # into the wtmpdb login database.