Bug#771172: systemd-sysv-generator does not generate
Salvo Tomaselli
tiposchi at tiscali.it
Thu Nov 27 11:01:46 GMT 2014
Package: systemd
Version: 215-6
Severity: critical
Justification: breaks unrelated software
Dear Maintainer,
I am not providing the additional information that reportbug wants to provide
because if I do, the mail will be rejected as spam by bogus filters.
Dear Maintainer,
somehow, after the last upgrade (which included dbus, console-setup,
libpolkit-backend, schroot) I was unable to start postfix.
While upgrading I had this message:
> insserv: FATAL: service dnsmasq is missed in the runlevels 2 3 4 5 to use service postfix
that caused the entire upgrade to fail.
I didn't know what was the problem, the LSB headers seemed fine, so I removed
/etc/init.d/postfix and /etc/init.d/dnsmasq and proceeded with the upgrade.
After the upgrade I put the scripts in their original position.
Then, I noticed that postfix was not running and could not be started
> ● postfix.service
> Loaded: not-found (Reason: No such file or directory)
> Active: inactive (dead)
which is when I learnt about the existance of systemd-sysv-generator (which
lacks a man page and doesn't support a -h switch)
After some investigation I found out that these generated files belong in
/run/systemd/generator.late/, for systemd to be able to run the service.
There was no such file there for postfix, so I ran the tool, which generated
files in /tmp, and then moved the postfix.service inside the correct location,
to be able to start it.
I have no clue of what happened with insserv and why it was failing in the first
place, and I guess that systemd refusing to start my service was due to my
removing and then adding the script.
However, I might want to copy a script in /etc/init.d at anytime and I would
expect systemd to be able to run it, without first having to run some
undocumented tool.
Please let me know if you need more information about the problem.
Best
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.17.2d (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages systemd depends on:
ii acl 2.2.52-2
ii adduser 3.113+nmu3
ii initscripts 2.88dsf-58
ii libacl1 2.2.52-2
ii libaudit1 1:2.4-1
ii libblkid1 2.25.2-3
ii libc6 2.19-13
ii libcap2 1:2.24-6
ii libcap2-bin 1:2.24-6
ii libcryptsetup4 2:1.6.6-3
ii libgcrypt20 1.6.2-4
ii libkmod2 18-3
ii liblzma5 5.1.1alpha+20120614-2+b1
ii libpam0g 1.1.8-3.1
ii libselinux1 2.3-2
ii libsystemd0 215-6
ii mount 2.25.2-3
ii sysv-rc 2.88dsf-58
ii udev 215-6
ii util-linux 2.25.2-3
Versions of packages systemd recommends:
ii dbus 1.8.12-1
ii libpam-systemd 215-6
Versions of packages systemd suggests:
pn systemd-ui <none>
-- Configuration Files:
/etc/systemd/logind.conf changed [not included]
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list