Package: ndctl Version: 65-1.0 Severity: normal Tags: patch Hi! I'm afraid that the event monitor doesn't get started on any rc system other than systemd.
My stab at the init script attached; alas, as I'm in Brazil right now while all DIMMed machines I can access are in Poland, the script isn't adequately tested. The daemon exits if there are no real DIMMs; emulation is not enough to test its functionality. But, with init scripts being simpler than .service files, there's not much to get wrong. Meow! -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.2.5-00036-g8cfc5c871f99 (SMP w/64 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages ndctl depends on: ii libc6 2.28-10 ii libdaxctl1 65-1 ii libjson-c3 0.12.1+ds-2 ii libkeyutils1 1.6-6 ii libndctl6 65-1 ii libuuid1 2.34-0.1 ndctl recommends no packages. ndctl suggests no packages. -- Configuration Files: /etc/ndctl/monitor.conf changed [not included] -- no debconf information
#!/usr/bin/env /lib/init/init-d-script ### BEGIN INIT INFO # Provides: ndctl-monitor # Required-Start: $syslog $time $remote_fs # Required-Stop: $syslog $time $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Ndctl Monitor Daemon # Description: monitoring of smart events of nvdimm objects ### END INIT INFO DAEMON=/usr/bin/ndctl DAEMON_ARGS="monitor --daemon"