Bug#1094921: sysvinit-core: does not write entries to wtmpdb
Mark Hindley
mark at hindley.org.uk
Sat Feb 1 20:32:28 GMT 2025
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?
Mark
#! /bin/sh
# Generated by /home/mark/src/debian/unit-translator/utrans from:
# 6e6aacdeddf878a01b260abbda787373e176cce440d786d535d6cf7a465c25cd ./tmp.iH71YBzenr/usr/lib/systemd/system/wtmpdb-update-boot.service
# kFreeBSD does not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# 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
# Description: Write boot and shutdown times into wtmpdb
### END INIT INFO
DESC="Write boot and shutdown times into wtmpdb"
DAEMON="none"
NAME="wtmpdb-update-boot"
do_start_cmd_override() {
/usr/bin/wtmpdb boot
}
do_stop_cmd_override() {
/usr/bin/wtmpdb shutdown
}
More information about the Debian-init-diversity
mailing list